DBXML Berkley messes up characters invalidating W3C stand

Questions about XML that are not covered by the other forums should go here.
dreuzel
Posts: 9
Joined: Thu Jan 05, 2006 7:08 pm

DBXML Berkley messes up characters invalidating W3C stand

Post 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
Whow another day in testing
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
dreuzel
Posts: 9
Joined: Thu Jan 05, 2006 7:08 pm

Post 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
Whow another day in testing
Post Reply