MXML的使用: The description of mxml

1 · 0x4c2 · Oct. 8, 2020, 5:57 a.m.
MXML (Minimal XML) is a small, fast and versatile library that reads a whole XML file and puts it in a DOM tree. 1.XML XML特点和作用 : XML 指可扩展标识语言( eXtensible Markup Language) XML 的设计宗旨是传输数据, 而非显示数据 XML 标签没有被预定义。 您需要自行定义标签。 作为一种通用的数据存储和通信格式被广泛应用。 描述的数据作为一棵树型的结构而存在。 1<?xml version="1.0" encoding="utf-8"?> 2<books> 3 <book id="001"> 4 <author>wanger</author> 5 </book> 6</books> 2.mxml写入操作 mxml既可以创建写入xml文件,也可以解析xml文件数据 写入示例: 1#include"mxml.h" 2int main() 3{ 4 // create a new xml ...