2026-04-10 23:27:55 +02:00
|
|
|
---
|
|
|
|
|
layout: page
|
|
|
|
|
published: true
|
2026-04-11 00:18:36 +02:00
|
|
|
noToc: false
|
2026-04-10 23:27:55 +02:00
|
|
|
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/external/xml2/
|
|
|
|
|
lang: en
|
|
|
|
|
tags:
|
2026-04-11 00:18:36 +02:00
|
|
|
- extension
|
|
|
|
|
- libxml2
|
|
|
|
|
- optional
|
|
|
|
|
- xml
|
2026-04-10 23:27:55 +02:00
|
|
|
---
|
|
|
|
|
|
2026-02-19 14:05:14 +01:00
|
|
|
|
|
|
|
|
- CMake option: FUN_WITH_XML2=ON
|
|
|
|
|
- Purpose: Minimal XML parsing helpers using libxml2.
|
2026-04-15 01:25:17 +02:00
|
|
|
- Homepage: [http://xmlsoft.org/](http://xmlsoft.org/){:class="ext"}
|
2026-02-19 14:05:14 +01:00
|
|
|
|
2026-02-19 23:33:00 +01:00
|
|
|
## Opcodes:
|
|
|
|
|
|
2026-02-19 14:05:14 +01:00
|
|
|
- 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)
|
|
|
|
|
|
2026-02-19 23:33:00 +01:00
|
|
|
## Notes:
|
|
|
|
|
|
2026-02-19 14:05:14 +01:00
|
|
|
- Requires libxml2 development headers/libs.
|
|
|
|
|
- On many systems, the include path is `/usr/include/libxml2`.
|