Re: [xml] problem with xmlGetProp

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@imag.fr)
Date: Fri Jan 19 2001 - 04:52:51 EST


On Fri, Jan 19, 2001 at 12:30:19AM -0800, Alice Tull wrote:
>
> Hi,
>
> I'm using 1.8.7 and encountered the following problem:
>
> One of my elements has an attribute that takes a string:
>
> <Field separator = "\n" />
>
> When I use xmlGetProp to get the value for separator,
> it returned "\\n". Is that correct behavior?

 No, please double check (I bet you got confused) because I
can't reproduce it with either 1.8.11 nor 1.2.11:

orchis:/gnome/src/gnome-xml.old -> cat tst.xml
<Field separator = "\n" />
orchis:/gnome/src/gnome-xml.old -> ./tester tst.xml
<?xml version="1.0"?>
<Field separator="\n"/>
orchis:/gnome/src/gnome-xml.old -> ../gnome-xml/xmllint tst.xml
<?xml version="1.0"?>
<Field separator="\n"/>
orchis:/gnome/src/gnome-xml.old ->

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jan 19 2001 - 06:44:26 EST