Thomas Leonard
2009-10-26 17:08:56 UTC
Hi,
Could someone give some simple examples showing how to read and write
XML using E?
The XMLQuasiParser looks reasonable, but says it is deprecated in favour
of using Terms. I can build Terms manually, but I can't see how to turn
serialised XML into a Term, or a Term into serialised XML.
I found this, but it doesn't say which methods to call:
http://www.erights.org/data/terml/embeddings.html
There's also Term.updoc in the source, which shows how to convert a sml
DOM to a term, but not the other way around. Also, sml doesn't support
all of XML, e.g.
? sml`<foo/>`
# problem: Failed: syntax error: expected '>' but got '/' at 4
Thanks,
--
Dr Thomas Leonard
IT Innovation Centre
2 Venture Road
Southampton
Hampshire SO16 7NP
Tel: +44 0 23 8076 0834
Fax: +44 0 23 8076 0833
mailto:***@it-innovation.soton.ac.uk
http://www.it-innovation.soton.ac.uk
Could someone give some simple examples showing how to read and write
XML using E?
The XMLQuasiParser looks reasonable, but says it is deprecated in favour
of using Terms. I can build Terms manually, but I can't see how to turn
serialised XML into a Term, or a Term into serialised XML.
I found this, but it doesn't say which methods to call:
http://www.erights.org/data/terml/embeddings.html
There's also Term.updoc in the source, which shows how to convert a sml
DOM to a term, but not the other way around. Also, sml doesn't support
all of XML, e.g.
? sml`<foo/>`
# problem: Failed: syntax error: expected '>' but got '/' at 4
Thanks,
--
Dr Thomas Leonard
IT Innovation Centre
2 Venture Road
Southampton
Hampshire SO16 7NP
Tel: +44 0 23 8076 0834
Fax: +44 0 23 8076 0833
mailto:***@it-innovation.soton.ac.uk
http://www.it-innovation.soton.ac.uk