From: Alexander Larsson (alla@lysator.liu.se)
Date: Sun Feb 14 1999 - 12:28:43 EST
I've recently discovered a bug in my program (Dia) that uses gnome-xml.
To fix this i need some information about the usage of the function
xmlSetProp(). Is the string i pass to this function supposed to be
limited in any way (like the xml-spec says) or is it escaped by
gnome-xml?
The reason i ask is because it acts a bit strange.
Given:
xmlSetProp(doc->root, "prop1", "gno<me is great");
It sets (when writing to a file):
<EXAMPLE prop1="gno<me is great" prop2="&linux; too" emptyprop="">
That is, the '<' is escaped to <
On the other hand, given:
xmlSetProp(doc->root, "prop1", "gno&me is great");
It exports
<EXAMPLE prop1="gno" prop2="&linux; too" emptyprop="">
That is, the '&' is not escaped (to & or soo i would guess, i'm no
xml wizard).
Soo, what kind of behaviour can i expect from xmlSetProp()?
---- Message from the list xml@rufus.w3.org Archived at : http://rufus.w3.org/veillard/XML/messages to unsubscribe: echo "unsubscribe xml" | mail majordomo@rufus.w3.org
This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:25 EDT