How to make XMLDocument from a string?

Bob Erb bob.erb at gmail.com
Fri Apr 28 02:44:09 UTC 2006


Is there a way to make an XMLDocument from a string? I want to do
something like this

  XMLDocument new parseDocumentFrom: '<root><child>wah</child></root>'

but #parseDocumentFrom: takes a stream as an argument. I tried
creating a TextStream from the string, then a ReadStream on that, but
that didn't work.

Thanks in advance for any help.

- Bob Erb



More information about the Squeak-dev mailing list