On 05.09.2012 08:16, Rick Flower wrote:
...
stream := './identity.xml' asFile readStream.
parser := XML.XMLParser new.
parser validate: false.
parser parse: stream.
For those like me that stumbled around a bit more on the XML parsing,
once you've
got a parser object that is good to go, you can access the docroot and
associated
items (as mentioned on the help page entitled "Building a DOM from
XML") using the
following snippet :
doc := parser document
Once you have that you can get the items of interest as mentioned
earlier :
item1 := (doc root elementNamed: 'foo') characterData.
Seems to work OK! I now believe I'm good to go.. Hopefully this helped
someone else
besides me.. :-)
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk