For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > February 2005 > simple XML









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author simple XML
ZipDC

2005-02-28, 3:55 pm

Hi

I am looking for some good resource on reading and writing basic XML files.
I don't want to do anything particularly fancy, just create an xml file to
replace an .ini file. Any pointers to something lightweight?

Thanks in advance

ZipDC


Mike D Sutton

2005-02-28, 3:55 pm

> I am looking for some good resource on reading and writing basic XML files.
> I don't want to do anything particularly fancy, just create an xml file to
> replace an .ini file. Any pointers to something lightweight?


If nothing else this will automate the process of converting an INI file to XML for you!
http://groups.google.co.uk/groups?s...FTNGP09.phx.gbl
Also, here's a basic introduction to XML and various links to other old posts on the subject, if you have any specific
queries then post back and we'll take a look for you:
http://groups.google.co.uk/groups?s...FTNGP10.phx.gbl
Hope this helps,

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: Http://EDais.mvps.org/


Jeff Johnson [MVP: VB]

2005-02-28, 3:55 pm


"ZipDC" <zipDC@decosson.net> wrote in message
news:cvvcbg$ju7$1$8302bc10@news.demon.co.uk...

> I am looking for some good resource on reading and writing basic XML
> files.
> I don't want to do anything particularly fancy, just create an xml file to
> replace an .ini file. Any pointers to something lightweight?


XML isn't particularly lightweight. If you're looking for something simple
to replace .INI files you might be better off rolling your own. Otherwise
you're going to, at the very least, either learn how to get a nodelist and
iterate it to look for what you want (slow) or learn enough about XPath
queries to be able to select the subset of nodes you want to process. If you
can provide a sample of what you'd LIKE to do I might be able to whip up a
quick code sample. I've just recently gotten into using XML in code (nothing
fancy, no namespace stuff yet) and I can handle the basics.


ZipDC

2005-02-28, 3:55 pm

Thank you both.

ZipDC

"Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
news:ODHq0zaHFHA.4060@TK2MSFTNGP14.phx.gbl...
>
> "ZipDC" <zipDC@decosson.net> wrote in message
> news:cvvcbg$ju7$1$8302bc10@news.demon.co.uk...
>
>
> XML isn't particularly lightweight. If you're looking for something simple
> to replace .INI files you might be better off rolling your own. Otherwise
> you're going to, at the very least, either learn how to get a nodelist and
> iterate it to look for what you want (slow) or learn enough about XPath
> queries to be able to select the subset of nodes you want to process. If
> you can provide a sample of what you'd LIKE to do I might be able to whip
> up a quick code sample. I've just recently gotten into using XML in code
> (nothing fancy, no namespace stuff yet) and I can handle the basics.
>



Veign

2005-02-28, 3:55 pm

Adding:

To learn about XPath or XQuery goto www.w3schools.com . They have very well
written tutorials to learn the basics of web technologies...

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--

"ZipDC" <zipDC@decosson.net> wrote in message
news:cvvg8p$lbp$1$830fa7b3@news.demon.co.uk...
> Thank you both.
>
> ZipDC
>
> "Jeff Johnson [MVP: VB]" <i.get@enough.spam> wrote in message
> news:ODHq0zaHFHA.4060@TK2MSFTNGP14.phx.gbl...
simple[color=darkred]
Otherwise[color=darkred]
and[color=darkred]
whip[color=darkred]
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com