TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
smashingraph
NA
1
0
System.Xml.Document : How to write special characters in an xml file ?
Sep 28 2005 10:25 AM
Hello, I have a little problem when saving my xml file. I use an instance of System.Xml.Document. I load an xml document file and edit this file with an application, then when I save it (doc.save("file.xml") ), I would like also the whitespaces being saved.
Example:
<element>
<subElement> </subElement>
</element>
It saves correctly the whitespaces, but when I read it again, the whitespaces are trimmed! To prevent that, I would like to replace whitespaces by :
 
but on saving the xml writer encodes this sequence into :
&#32;
and therefore it is not interpreted as a whitespace anymore... :(( Any help would be really appreciated, thanks in advance!
Reply
Answers (
1
)
Obfuscator - Crytografy code
Using a config file via a Service