XML examples? (Real Studio games Mailinglist archive)
|[ANN] Preview of RBD 2.4 - Marc Zeedar|
|XML examples? - Joel Reymont|
|Re: XML examples? - Dustin Evermore|
|Date: 26.06.05 17:14 (Sun, 26 Jun 2005 18:14:04 +0200)|
|From: Joel Reymont|
Could you please point me to examples of using the XML parser (DOM,
SAX) in RB?
Someone mentioned there's a nice example in the Example Projects
download but I could not find it there.
|Re: XML examples?|
|Date: 27.06.05 07:18 (Mon, 27 Jun 2005 01:18:05 -0500)|
|From: Dustin Evermore|
I figured it out for my UniForge program <http://www.devermore.net/
UniForge/> by looking at tutorials at <http://www.w3schools.com/>. I
use XML to both store program data, to store preferences as well as
to save files being worked on. RB will do transforms on XML files
which allows me to do very nice HTML, text, and wiki code output.
Querying is very very fast when you load the XML object into memory.
That's how I extract information from xml data files after I load the
object into memory (which again I find to be incredibly fast using
the RB functions). The LoadXML method of the xmldocument class does
this for me. Then extract what data you need using the XQL method of
the xmlnode class (this is the superclass to xmldocument). XPaths is
a big topic, something which w3schools above can help with as well as
these XPath tutorials here <http://www.zvon.org/xxl/XPathTutorial/
Saving data is pretty simple and there are useful examples for that
in the RB Language guide. Where I had to learn new stuff was with the
figuring out the XPath syntax to use in the xql method, but once you
dig into it, it's not bad at all.
Hope this helps,
On Jun 26, 2005, at 11:14 AM, Joel Reymont wrote:
> Could you please point me to examples of using the XML parser (DOM,
> SAX) in RB?
> Someone mentioned there's a nice example in the Example Projects
> download but I could not find it there.
> Thanks, Joel
> Unsubscribe or switch delivery mode:
> Search the archives of this list here:
Unsubscribe or switch delivery mode:
Search the archives of this list here: