shithub: xml-9atom

ref: ce4a8027322c53b2832f221e2956c90dcd65fd1a
dir: /README/

View raw version
xml tools from 9atom as archived from
https://github.com/Plan9-Archive/9atom

plug-in repository for the following xml tools:

- libxml:
  /sys/include/xml.h
  /$objtype/lib/libxml.a
  /sys/man/2/xml
- xb:
  /$objtype/bin/xb
  /sys/man/1/xb
- libxpath: (not from 9atom)
  /sys/include/xpath.h
  /$objtype/lib/libxpath.a
  /sys/man/2/xpath

Installation:

mk install
mk clean (optional)

Deinstallation:

mk nuke

This will remove all the installed files.


Libxpath

currently supported rules:

- root path: /path/from/root
- functions: text(), position(), last(), node()
- filter/predicates: /path/to[path=path]
  - full path support: [path/to/@attr='hello']
  - type-safe: num==num, string==string, node==node
- node types:
  - name (/path)
  - string (/'hello')
  - number (/2)
  - function (/func())
- numbered element: /path/to/second[2]/element
- stepping:
  - /absolute/paths and relative/paths
  - descendant-or-self:: and //
  - child:: and x/y
  - attribute:: and @attr

There are probably bugs.