Conversion of &

Having trouble installing Oxygen? Got a bug to report? Post it all here.
glaverick

Conversion of &

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

Post 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
glaverick
Posts: 1
Joined: Fri Dec 05, 2003 4:37 pm
Location: North Carolina
Contact:

Post 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
Post Reply