1
0
Fork 0
forked from fun/fun

Renamed ./src/external to ./src/extensions. No code logic changes. (0.40.5)

This commit is contained in:
Johannes Findeisen 2026-04-19 00:02:36 +02:00
commit bb704a3778
25 changed files with 81 additions and 414 deletions

View file

@ -0,0 +1,34 @@
---
layout: page
published: true
noToc: false
noComments: false
noDate: false
title: Fun - XML (libxml2) extension (optional)
subtitle: Documentation for XML (libxml2) extension (optional)
description: Documentation for XML (libxml2) extension (optional)
permalink: /documentation/extensions/xml2/
lang: en
tags:
- extension
- libxml2
- optional
- xml
---
- CMake option: FUN_WITH_XML2=ON
- Purpose: Minimal XML parsing helpers using libxml2.
- Homepage: [http://xmlsoft.org/](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`.