Page 1 of 1

Conversion of &

Posted: Thu Dec 04, 2003 10:33 pm
by glaverick
I have an XML file with a node like this:

<Commercial>&#160;&#160;</Commercial>

When I load the file into Oxygen, it converts the node as follows:

<Commercial>&#160;&#160;</Commercial>

This does not work, as I am trying to preserve whitespace when I apply an XSL transform to this file to build an HTML page.

What can I do to correct this?

Posted: Thu Dec 04, 2003 11:27 pm
by george
Hi,

Oxygen does not perform any operation on your document when you load it. Maybe you are doing something else than just loading the document in the editor, please explain if this is the case and try to specify enough information to allow us to reproduce your problem.

Best Regards,
George

Posted: Fri Dec 05, 2003 4:43 pm
by glaverick
I apologize, I jumped to conclusions. :oops: Actually, the conversion was being performed by MS SQL Server/VB.net. Luckily the XML is retrieved in VB.net as a string before I save it to a disk file. I was able to correct the problem by using the replace function:

strXML=Replace(strXML,"&","&")

Now my XSL transform works correctly :D