1
0
Fork 0
forked from fun/fun
fun/web/documentation/extensions/xml2/xml2.md

889 B

layout published noToc noComments noDate title subtitle description permalink lang tags
page true false false false Fun - XML (libxml2) extension (optional) Documentation for XML (libxml2) extension (optional) Documentation for XML (libxml2) extension (optional) /documentation/extensions/xml2/ en
extension
libxml2
optional
xml
  • CMake option: FUN_WITH_XML2=ON
  • Purpose: Minimal XML parsing helpers using libxml2.
  • Homepage: http://xmlsoft.org/{:class="ext"}

Opcodes:

  • OP_XML_PARSE: pops text; pushes doc handle (>0) or 0
  • OP_XML_ROOT: pops doc handle; pushes node handle (>0) or 0
  • OP_XML_NAME: pops node handle; pushes string (node name)
  • OP_XML_TEXT: pops node handle; pushes string (concatenated text)

Notes:

  • Requires libxml2 development headers/libs.
  • On many systems, the include path is /usr/include/libxml2.