This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Can any one tell me how to write a xml file while the content from the database contains XML-relevant
characters like '&' or '<'..
In the case of normal file writer concept i can write into xml file without any hassle..but while reading the file., Internet Explorer throws an error like Whitespace is not allowed at this location. Error processing resource 'file:///C:xxxxx/xxx.xml Line 202 where line 202 contains a field with " & " .
I already did. Instead of writing a single "&" you have to write the string "&", and so on. So if your text node looks like "A & B" then you have to write "A & B". That's what "escaping" means.
But you might find it easier to just write each of your text nodes as CDATA sections.