0

Hi, In my program, a text file is read in, and certain parts of it are written to a XML file. There are special characters(e.g. &) that need to be escaped, so I need to escape all of them.
How can I manage to do this?

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by P00dle
0

Sorry, i'm a newer programmer so i am not sure what you mean by the & needs to be escaped, but if you take a look at my thread about regex you may find it helpful. Parsing Lines of a File

TJ

0

Thanks.

I forgot about CDATA, which keeps text in exactly the same format :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.