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
morton
NA
5
9.4k
How to read in XML to a textbox
Dec 15 2010 10:42 AM
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
Reply
Answers (
5
)
Aggregate and foreach return different values
using data from different column