473,473 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

xml NOT to file

Hi

I'm about to build the part of my application where i need to send data
between client + server

Instead of just throwing about strings such as

username:user1|sendto:user2|message:hello

i would like to send it as XML

as in

<msg>
<username>user1</username>
<sendto>user2</sendto>
<message>hello</message>
</msg>
I am new to XML in vb - can anyone explain the VERY basics of how i would
create that bit of xml i just gave as an example, or provide a link to a
decent example

I dont want to save the XML into a file, but instead would like to send it
over a TCP connection
that I have already established - i was hoping there would be some XML
object of which I could call
something like the tostring method, thus prividing me with the XML i have
built up as text.

It would be lovely if someone could also explain the very basics of how on
the
other end I would also parse this XML.

thnakyou

djunk
Nov 19 '05 #1
2 1375
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemXml.htm

That contains everything XML in .NET

Sounds like you may wnat XML.Writer:

ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemxmlxmlwriterclasstopic.htm

In fact this page here does eactly what you want:

ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconwritingxmlwithxmlwriter.htm

that is:

XmlTextWriter.
Input

data1|data2|data3|data4|data5
and you would like to transform it to :

Output

<data>
<item> data1 </item>
<item> data2 </item>
<item> data3 </item>
<item> data4 </item>
<item> data5 </item>
</data>

HTH,
Matt
"Djunk" <dj****@REMOVETHISblueyonder.co.uk> wrote in message
news:Ox*****************@news-binary.blueyonder.co.uk...
Hi

I'm about to build the part of my application where i need to send data
between client + server

Instead of just throwing about strings such as

username:user1|sendto:user2|message:hello

i would like to send it as XML

as in

<msg>
<username>user1</username>
<sendto>user2</sendto>
<message>hello</message>
</msg>
I am new to XML in vb - can anyone explain the VERY basics of how i would
create that bit of xml i just gave as an example, or provide a link to a
decent example

I dont want to save the XML into a file, but instead would like to send it
over a TCP connection
that I have already established - i was hoping there would be some XML
object of which I could call
something like the tostring method, thus prividing me with the XML i have
built up as text.

It would be lovely if someone could also explain the very basics of how on
the
other end I would also parse this XML.

thnakyou

djunk

Nov 19 '05 #2
thanks, i been hanging around for 3 days not knowing what to do, not being
able to find anything through google - im going to check out that
information and if it works i think you could well be up for an award
"Matt Thompson" <ma***********@sensonics.co.uk> wrote in message
news:Ov**************@TK2MSFTNGP11.phx.gbl...
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemXml.htm

That contains everything XML in .NET

Sounds like you may wnat XML.Writer:

ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemxmlxmlwriterclasstopic.htm
In fact this page here does eactly what you want:

ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconwritingxmlwithxmlwriter.htm

that is:

XmlTextWriter.
Input

data1|data2|data3|data4|data5
and you would like to transform it to :

Output

<data>
<item> data1 </item>
<item> data2 </item>
<item> data3 </item>
<item> data4 </item>
<item> data5 </item>
</data>

HTH,
Matt
"Djunk" <dj****@REMOVETHISblueyonder.co.uk> wrote in message
news:Ox*****************@news-binary.blueyonder.co.uk...
Hi

I'm about to build the part of my application where i need to send data
between client + server

Instead of just throwing about strings such as

username:user1|sendto:user2|message:hello

i would like to send it as XML

as in

<msg>
<username>user1</username>
<sendto>user2</sendto>
<message>hello</message>
</msg>
I am new to XML in vb - can anyone explain the VERY basics of how i would create that bit of xml i just gave as an example, or provide a link to a
decent example

I dont want to save the XML into a file, but instead would like to send it over a TCP connection
that I have already established - i was hoping there would be some XML
object of which I could call
something like the tostring method, thus prividing me with the XML i have built up as text.

It would be lovely if someone could also explain the very basics of how on the
other end I would also parse this XML.

thnakyou

djunk


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: matt | last post by:
I have compiled some code, some written by me, some compiled from various sources online, and basically i've got a very simple flat file photo gallery. An upload form, to upload the photos and give...
5
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. ...
7
by: Joseph | last post by:
Hi, I'm having bit of questions on recursive pointer. I have following code that supports upto 8K files but when i do a file like 12K i get a segment fault. I Know it is in this line of code. ...
3
by: StGo | last post by:
How can i read/write file's custom attributs(like subject,author...) in C#??? Thanks :))
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
3
by: Shapper | last post by:
Hello, I created a script to upload a file. To determine the file type I am using userPostedFile.ContentType. For example, for a png image I get "image/png". My questions are: 1. Where can...
0
by: troutbum | last post by:
I am experiencing problems when one user has a document open through a share pointing to the web site. I use the dsolefile to read the contents of a particular directory and then display them in a...
0
by: thjwong | last post by:
I'm using WinXP with Microsoft Visual C++ .NET 69462-006-3405781-18776, Microsoft Development Environment 2003 Version 7.1.3088, Microsoft .NET Framework 1.1 Version 1.1.4322 SP1 Most developers...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.