I am sure Oleg meant that you should use an approach that automaically
like the special character encoding.
If you use the XmlDocument (XML DOM) you have just about no trouble with
because the DOM does it for you.
Similary, if you read an XML document using XML DOM, the DOM will
appropriately decode the data you read.
If you on the other hand would use a pure text writer, like StreamWriter for
then you would have to take care of the character encoding issues yourself.
Sorry, I cannot understand your problem without more information.
Dennis JD Myr�n
"Bruno" <firstname.lastname@example.org> wrote in message
> but I'm using xmlDocument and xmlNode to create the nodes, I would need to
> change all my code and use xmlTextWriter?
> "Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
>> Bruno wrote:
>>> I have a code that generates a xml file and I have some texts that
>>> contains " ' < > etc....
>>> how do I encode these texts to have them showed with the characters < "
>>> ' / > etc...
>> Why doesn't you code use standard XML API for creating XML? Just use
>> XmlTextWriter to create XML and don't bother about XML syntax
>> peculiarities - XmlTextWriter takes care.
>> Oleg Tkachenko [XML MVP, MCP]