Page 1 of 1

DBXML Berkley messes up characters invalidating W3C stand

Posted: Thu Jan 05, 2006 7:15 pm
by dreuzel
I'm running DBXML of berkley.
I need to us < > and other XML foreign characters in my XML structure
W3c standards tell me to ue < an > as encoding.
This is fine for me ...
As I load the xml record in the DB
as : <test var="<>" />
the xml record is returned as <test vat="<>" />
it seems to interprete the &gt opposed to the &lt
as a result the XML string is corrupted.

:(

Any idea to solve the problem

Posted: Fri Jan 06, 2006 11:32 am
by sorin_ristache
Hello,

Please specify a sequence of steps that you execute including the parameters for the import from database action to get the corrupt string.

Regards,
Sorin

Posted: Fri Jan 06, 2006 12:45 pm
by george
Hello,

The two representations of the > character in XML are equivalent, so what you get back is equivalent with what you had initially. If you want to have this consistent then do not escape the > character, just write it as it is. Things are different with the < character, it always need to be escaped.

Best Regards,
George

Posted: Thu Jan 19, 2006 11:15 am
by dreuzel
I found out what went wrong using


as a document can be converted to text in multiple ways....
Document.toString fails to convert the ">" badly and messes up the XML standard Doc.AsString fails
Doc.getContent seems to work



Best regards thanks anyway