Subject Re: XML read and write
From EUGENIO <e.llaras@icyesa.COM>
Date Wed, 28 Jan 2015 06:17:57 -0500
Newsgroups dbase.getting-started

Michael Nuwer Wrote:

> On 7/28/2011 10:30 AM, Tim wrote:
> > Hi,
> > As it seems we will all be working more and more with XML data,
> > does or will dBASE have complete XML read and write functions?
> >
> > As some of you may know a single XML table can represent an entire database with many parent and child tables.  Crystal reports does a great job of displaying this.  Its very cool.
>
> You might try something like this:
>
> xmlDoc = new OleAutoClient(\"Msxml2.DOMDocument.6.0\")
> xmlDoc.async = False
> xmlDoc.resolveExternals = False
>
> // Load the document
> xmlDoc.Load(\"http://192.168.0.3/myFile.xml\")
> // or Load via a file
> // xmlDoc.LoadXML(\"c:\\myFile.xml\")
>
> // Create a shortcut to the Node that contains the field tag
> // and sublist of field names.
> fieldsNode = xmlDoc.documentElement.childNodes.item(0).childNodes
> inspect(Fieldsnode.item(0).attributes.item(0))