473,387 Members | 1,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

reading xml attribute from richtextbox in visual c#

hi,
i am having an textbox which displays the xml code.
i want to read the specific attribute value and i need to save that richtextbox content with that value as filename.

for example,

my richbox contains,

..................................
................................... etc...

<rollno id="123"<


etc...........


i want to read that id value 123 and need to save that xml code as 123.xml

if it a file i will read using textreader.getattribute("id").

i need to pass,
xmltextreader rd=new xmltextreader(richtextbox1.text);


but it is not working.

can anyone help me to read the richtextbox as textreader.

thanks in advance
Dec 17 '07 #1
1 1245
Dököll
2,364 Expert 2GB
hi,
i am having an textbox which displays the xml code.
i want to read the specific attribute value and i need to save that richtextbox content with that value as filename.

for example,

my richbox contains,

..................................
................................... etc...

<rollno id="123"<


etc...........


i want to read that id value 123 and need to save that xml code as 123.xml

if it a file i will read using textreader.getattribute("id").

i need to pass,
xmltextreader rd=new xmltextreader(richtextbox1.text);


but it is not working.

can anyone help me to read the richtextbox as textreader.

thanks in advance
Hello, selvi166!

I am going to forward over for added support. Hope you get it nailed down:-)

In a bit!

Dököll
Dec 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: JonnyT | last post by:
I searched high and low for an answer on how to auto scroll a richtextbox and now I finally have it. Since it took me a while to get a good efficient way of doing it that didn't require focus to...
4
by: Cc | last post by:
how to print content of richtextbox?
5
by: Urs Vogel | last post by:
Hi When printing coloured text from a RichTextbox, it turns out to be a quite and timeconsuming job to position all differently coloured strings on the Page with DrawString(). Is there a...
0
by: Mark Denardo | last post by:
Hi, I'm trying to record the text value of a RichTextBox after handling a KeyPressEvent (each time the user types a char). But what I'm seeing is that the value of rtb.Text is equal to the value...
9
by: James Wong | last post by:
Hi, I use the RichTextBox in my program. It will use different language in this RichTextBox (chinese and english characters), and it set the "DualFont" and use different fonts. By the way, how...
2
by: lizii | last post by:
At the moment i am trying to write into a richtextbox using the Rtf call from another richtextbox. However realising that richtextbox do not have multithreading - i know i need to invoke this...
4
by: bmerlover | last post by:
Hi, I need to read a script file and change the text on the buttons I set. I have the psuedocode in my head, but I'm having trouble putting that into code. I figured out how to seperate B1 from T1...
0
by: selvi166 | last post by:
hi, i am having an textbox which displays the xml code. i want to read the specific attribute value and i need to save that richtextbox content with that value as filename. for example, my...
1
by: Andrus | last post by:
I need to save font selected by user by Ctrl+MouseWheel in Winforms RichTextBox. I tried override below but this does not remember font: in this method Font.Size property seems to be always...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.