Nevermind.. I found that if I changed #processDocumentStream: to
#parse: that it works fine.. I searched the archives the other day but
didn't notice one post from someone else using that method.. 

So, for
completeness for anyone that might come after me here's the scoop :


With this XML file (for example) : 

]>

foo
bar
baz

You can then use
this code to read & parse it : 

[PackageLoader fileInPackage: #XML] on:
Error do: [:ex | ex return]. 

... 

| stream | 

 stream :=
'./identity.xml' asFile readStream.
 parser := XML.XMLParser new.

parser validate: false.
 parser parse: stream.

 
_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to