XML Reading "&" Error

G

Guest

Hi,

I have an xml file that is written and it writes the & like "&", without
the quotes. When I go to read it back in, it reads it as "&" instead of "&"
which is what I need. How would I go about doing this?

Thanks,

Renzska
 
G

Guest

I just used a temporary string and did a regex.replace to fix this issue, but
I am still wondering if there is a way without having to do that.

Thanks,

Renzska
 
V

vMike

Renzska said:
Hi,

I have an xml file that is written and it writes the & like "&", without
the quotes. When I go to read it back in, it reads it as "&" instead of "&"
which is what I need. How would I go about doing this?

Thanks,

Renzska
You might also look into cdata as in

<xmlitemname><![CDATA[Some text & some more text]]></xmlitemname>

mike
 
G

Guest

The quotes were to signify what was contained in the xml file.

I've got it working now though so we can consider this question resolved.

Thanks,

Renzska
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top