Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Web Browser control with it and display as a Xml
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Mahesh Mohan
10y
854
1
Reply
I have a xml. I want to set the value of the Web Browser control with it and display as a Xml.
how do I tell it to display as a XML ?
System.Xml.XmlTextReader oXmlTextReader = new
System.Xml.XmlTextReader(@"D:\Demo\data.xml");
System.Text.StringBuilder oStringBuilder = new System.Text.StringBuilder( ) ;
oStringBuilder.Append(oXmlTextReader.ReadOuterXml( ) ) ;
while (oXmlTextReader.Read())
{
oStringBuilder.Append(oXmlTextReader.ReadOuterXml( ) ) ;
}
wbWebBrowser.Navigate(oStringBuilder.ToString());
}
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
How to learn WPF?
How to dynamically list box items add on canvas in WPF