XML Reading "&" Error

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top