View script | License | Download documentation as: HTML or editable |
Download script | History | Other scripts by: chrisrg |
30-Apr 14:08 UTC
[0.075] 11.702k
[0.075] 11.702k
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 |