|
-
Jun 10th, 2003, 03:28 AM
#1
Thread Starter
Junior Member
VB - XML Newbie
I don't know the best way of getting started in processing XML messages using VB... can anyone suggest a good starting point - tools needed - further reading etc.. so I can hit the ground running
thanks
Rob
-
Jun 12th, 2003, 08:55 PM
#2
Fanatic Member
Look up the Instr() and Mid() functions. Instr() finds where data is in a string, and Mid() will take data out of a string no matter where it is.
-
Jun 12th, 2003, 11:19 PM
#3
Stuck in the 80s
Isn't there an XML parsing component? Or am I imagining it? Not sure. Or is this a VB Script question?
*ponders whether or not he should hit submit* ...
-
Jun 13th, 2003, 03:07 AM
#4
Thread Starter
Junior Member
Writing my own XML parser seems a little heavy handed - I thought a XML parsing component would be readily available to do the job for me so that I could focus effort on the application development itself.
Getting data into XML format from a recordset doesnt seem to be much of an issue... its the otherway that seems to cause all the bother.. I shall keep looking...
Rob
-
Jun 13th, 2003, 12:08 PM
#5
Stuck in the 80s
Perhaps you should ask this in a VB forum?
-
Jun 13th, 2003, 12:18 PM
#6
GROAN....
For some reason I have this feeling that the people who have replied thus far haven't really gotten in to VB & XML much, if at all....
Yes, writing a parser is a bit much....
Yes, there is a "pre-built" parser component....there's several.... Microsoft has one..... called MSXML (search MSDN for it)
As far as "getting started" with XML... it kinda depends on what you want to do with it.
RobC - contact me off line -- I might be of more use that way than inside this tiny box.
-
Jun 15th, 2003, 01:08 AM
#7
You should use MSXML. It is essentially a new language and while it may take a while to get used to, it will be worth the effort as compared to trying to read/write XML using VB's string functions. It's a pretty big subject so you should probably buy a book. If you have specific questions I or other people can help you.
-
Jun 15th, 2003, 09:26 AM
#8
http://www.juicystudio.com/tutorial/vb/xml.html
This tut should get you started using MSXML and the DomDocument.
Despite all the hype remember that at the end of the day XML is just a glorified text file, and unless you have a very definite reason for using it your going to find it rather boring.
-
Jun 15th, 2003, 04:15 PM
#9
Originally posted by MartinLiss
You should use MSXML. It is essentially a new language and while it may take a while to get used to, it will be worth the effort as compared to trying to read/write XML using VB's string functions. It's a pretty big subject so you should probably buy a book. If you have specific questions I or other people can help you.
*scratches head*
MSXML a new language? A big subject?
Or do you mean XML itself?
Even XML is not that big. I have a book on XML (I regret buying it, it's outdated and doesn't contain much useful information) and only about a third or even less is about core XML (XML syntax, common attributes like xml:lang and xml:whitespace or however it's called, DTDs), the rest is about XML Schema, XHTML, MathML, XHTML, SVG, XSL etc. Parts are even about CSS or project planning and internationalization!
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 15th, 2003, 04:21 PM
#10
I guess I mean the language you need to learn when you use the DOM.
Sounds like a poor book.
-
Jun 15th, 2003, 04:25 PM
#11
Stuck in the 80s
Re: GROAN....
Originally posted by techgnome
For some reason I have this feeling that the people who have replied thus far haven't really gotten in to VB & XML much, if at all....
Well nobody else seemed to jump to help him. Forgive me for trying to give him some kind of help.
-
Jun 16th, 2003, 01:14 AM
#12
Originally posted by MartinLiss
I guess I mean the language you need to learn when you use the DOM.
Sounds like a poor book.
But the DOM can be used from any language. 
Yeah, the book IS poor. As I said, I regret buying it.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jun 16th, 2003, 03:54 AM
#13
Thread Starter
Junior Member
I have picked up the MSXML SDK.. and will have a look at it... as for books I personally find a lot of them turn XML into a heavy subject and well beyond anything I will be using it for...
Once I have the basic paser working then I can then let it evolve and my understanding improves.
Coding your own parser whilst learning the fundimentals of XML etc would be a mis-direction of effort, and would lead to a disheartening death spiral of confussion and rework... at which point I would welcome back the CSV!
Rob
-
Jun 18th, 2003, 10:59 AM
#14
New Member
Rob...I'm in the same boat.
I just got the MSXML SDK 4.0 also and I have been reading through it.
I understand XML docs and schemas, but I need to know how to author an XML document in VB using a given schema. In other words, I don't want to have to print out the schema and manually write out the XML file. I know there has to be a way load a schema in VB and then use DOM to write out data by passing it element names. At least I hope I can do that. Let me know if you run across any documentation on this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|