XML support in E

Thomas Leonard <tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]>
Newsgroups gmane.comp.lang.e.general
Organization IT Innovation
Message-ID <[email protected]>
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:tal-v5nx5w6akNyLE8xUarVfuPLx9OUvmyODWmv/[email protected]
http://www.it-innovation.soton.ac.uk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.