Xml in vb.net

R

Ryan McConnell

I have a windows application, which loads a text file containing xml
into a modified RichTextBox(modified so i can print it). I want the
user to be able to type the xml and then parse it.
Is my understanding that i can create an xmlobject with a StreamWriter
which uses the contents of the RichTextBox as its source?
If so how?
I hope to have a form which i can click on a database and enter info
to the xml, is there any good sites that can help me with creating the
xml objects too?
I'm quite new to vb.net so any help would be appreciated.
thanks
Ryan McConnell
 
C

Cor

Hi Ryan,

You can do with XML a lot, you can make datasets from it, spreadsheet
information, transport documents, and more things.

But because it is XML is a spreadsheed not a letter. And a dataset not a
message.

This is often mixed up.

I get the idea that you are doing that now?

Cor
 
R

Ryan McConnell

Hey Cor,
I get what your saying but i'm trying to construct the language to do
that.
I'm creating a webservices workflow program. The user has lists of
webservices and will click on items to add them to the workflow. The
workflow is stored as an xml document. I've been loading xml files to a
RichTextBox so i can type data into them. But i want the programatically
add the web services info into the workflow.
I was hoping that i could load the workflow from the richtext box and
parse it and use it rather than having to open the file again and risk
losing the users data. Although this is acceptable if there is no other
way.
I'd seen a program use a streamwriter to load the data to the xml object
in vb.net, and i was wondering if there was any way in which i could get
the streamwriter to use the richtextbox as its datasource.

Thanks.
Ryan
 
C

Cor

Hi Ryan,

I was giving you a more general answer to your solution.

This is written about the richtextbox

The RichTextBox control allows the user to enter and edit text while also
providing more advanced formatting features than the standard TextBox
control. Text can be assigned directly to the control, or can be loaded from
a Rich Text Format (RTF) or plain text file.

I do not like using it for things like this but you can have a look at the
axwebbrowser with allowedit as dhtml set.

(But I think you never get this nice in this way, but that is only my
opinion).

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top