If someone has any idea that how to print the xml file.
FaridMasood -2 Junior Poster in Training
Recommended Answers
Jump to PostA simple way to print an XM data onto the Console window is by using an object of
XmlDocument
.here is a sample code snippet:
XmlDocument doc = new XmlDocument(); doc.LoadXML(("<clientinfo><servicetype>korea</servicetype><servertype>sakray</servertype></clientinfo>")); doc.Save(Console.Out);
This is one way to do it. Another way is pass an …
Jump to PostAmirBedair, Please use the code blocks while posting your code. Refer to the rules section of the forum.
>
string text = sr.ReadToEnd();
This is a big no no. Do you even realize if the file is big what might happen? Never store it like that. Instead you can …
Jump to Post>But printing in this way formatting will be
>omitted which is not solution of my
>problem
What more do you want? We told you how to "get" a formatted XML output and save it. We also told you how to print a file. All you need to do is combine …
All 11 Replies
AmirBedair 0 Light Poster
ChaseVoid 30 Junior Poster
FaridMasood -2 Junior Poster in Training
FaridMasood -2 Junior Poster in Training
AmirBedair 0 Light Poster
ChaseVoid 30 Junior Poster
FaridMasood -2 Junior Poster in Training
ChaseVoid 30 Junior Poster
FaridMasood -2 Junior Poster in Training
AmirBedair 0 Light Poster
dhairy1 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.