XML and MOF
Michael Rueger
michael at squeakland.org
Wed May 12 06:28:40 UTC 2004
Trygve Reenskaug wrote:
> Michael,
>
> Many thanks for the pointer, I could never have found it on my own. I'm
> not expert on XML, DTD, SAX, DOM, XSD, XMI... so it will take me some
> time to penetrate the 24 uncommented Yaxo classes. But I'll get there,
outch ;-) Point taken...
The easiest way to deal with parsing XML is to parse into a DOM
structure and then just walk through it recursively.
See
XMLDOMParser addressBookXMLWithDTD
for an example.
You can also read the XML directly from a file by using
XMLDOMParser>>parseDocumentFromFileNamed: fileName
Cheers
Michael
More information about the Squeak-dev
mailing list
|