View script | License | Download documentation as: HTML or editable |
Download script | History | Other scripts by: chrisrg |
5-Dec 16:18 UTC
[0.046] 11.701k
[0.046] 11.701k
Documentation for: xml-dom.rXML/DOM1. IntroductionAn XML/DOM interface designed for intuitive access to XML values.
2. UsageAn example session: >> test: {<a><b><c id="d">Text</c><c id="e" /></b></a>} == {<a><b><c id="d">Text</c><c id="e" /></b></a>} >> load-xml test == [ <a> [ <b> [ <c> [ /id "d" # "Text" ] <c> [ ... >> doc: load-xml/dom test >> length? doc/get-by-tag <c> == 2 >> c: doc/get-by-id "d" >> c/text == "Text" >> doc/tree/<a>/<b> == [ <c> [ /id "d" # "Text" ] <c> [ /id "e" ] ] >> e: c/sibling/after >> e/text == none >> e/get /id == "e" >> c/sibling/before == none |