Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Answers
How to read in XML to a textbox
morton
14y
8.1k
1
Reply
Hi,
i need to read in a XML in a textbox (maybe richtextbox?).
Here´s a snippet of XML:
doc.xml
<doc>
<fonts>
<font name="Times New Roman Regular" family="Times New Roman" style="Regular"/>
<font name="Times New Roman Bold" family="Times New Roman" style="Bold" />
<font name="Arial Italic" family="Arial" style="Italic"/>
<font name="Arial Bold" family="Arial" style="Bold"/>
</fonts>
<parStyle name="Paragraph_1">
<charStyle fFamily="Arial" fStyle="Italic" fSize="12"/>
</parStyle>
<charStyle>
<charStyle name="Character_1" fFamily="Times New Roman" fStyle="Bold" />
</charStyle>
<text parStyle="Paragraph_1" charStyle="Character_1">
<p style="Paragraph_1">
<parStyle>
<charStyle fFamily="Times New Roman" fStyle="Bold" />
</parStyle>
<span style="Character_1">
This is the first textline
<br/></span>
</p>
<p style="Paragraph_1">
<span style="None">
Here is the next line in other format.
</span>
</p>
</text>
</doc>
I want to show the text inside the textbox with it`s exact format.
My questions:
1. How can i read in the text-content of the XML and display it in a textbox?
2. Is it possible to read in the text-settings as well and how can i do that?
(3. Some idea for saving this XML from that textbox?)
thank you,
morton
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
Aggregate and foreach return different values
using data from different column