🔍

xml.o

Helps in processing xml documents

Main elements

Name Description / comments
.xml.parsed[] Return a dictionary with parsed XML

Example:

o)load "xml";
o)d:.xml.parsed "<note>\n<to>Andrew</to>\n<from>friend</from>\n<heading>Reminder</heading>\n<body>Don't forget me!</body>\n</note>";
o)d . (`note; `children; 3; `body; `children)
text| "Don't forget me!"
o)

Auxiliary elements

Name Description / comments
.xml.concat[x]
.xml.quotes[x] Parse quotes
.xml.spaces[x] Parse spaces
.xml.keyend[x] Parse end of key
.xml.nident[x] Parse identificator
.xml.commnt[x] Parse comments
.xml.keyval[x]
.xml.attrbs[x] Return field `attrs
.xml.pltext[x] Return field `text
.xml.prolog[x] Return field `prolog
.xml.lngtag[x]
.xml.inltag[x]
.xml.contnt[x] Parse content