Connecting Tech Pros Worldwide Help | Site Map

How to create a white space in the XML Text node....

  #1  
Old March 12th, 2008, 08:23 AM
Newbie
 
Join Date: Mar 2008
Posts: 1
XmlDocument doc = new XmlDocument();
XmlNode nNode = doc.CreateElement("Name");
nNode.AppendChild(doc.CreateTextNode(Convert.ToChar(160).ToString()));


Output would something like:
<Name> </Name> instead of </Name>.....Hope this helps someone!



Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Parse Mixed Content Iain answers 4 April 4th, 2007 01:55 PM
retaining leading whitespace in text of an xml node Steve Richter answers 1 February 21st, 2007 06:25 AM
VC++ .NET 2003: XmlValidatingReader via DTD - Unknown node type SHC answers 6 November 12th, 2005 04:36 AM
Formatting White Space Ot answers 6 November 12th, 2005 02:30 AM