1 "ˆl–ß=¿J*e¶¥8 Y¸È®21hßÁ ƒh¹À¿isa0060/serio0/input0 ;ˆl—ß=¿J*e¶¥8 Z¸ÓwyLZ7ÿ ƒh¹a—ß=¿J*e¶¥8 Z¸ÓwyLZ7ÿÁ1 ,ˆl—ß=¿J22ÛB‚P-ÜWiLZ7ÿÄ ƒmöA_‡I|¥‰ÓMÀÃ*Libxml Tutorial

Libxml Tutorial

John Fleck

Revision History
Revision 1June 4, 2002
Initial draft
Revision 2June 12, 2002
retrieving attribute value added
Revision 3Aug. 31, 2002
freeing memory fix
Revision 4Nov. 10, 2002
encoding discussion added
Revision 5Dec. 15, 2002
more memory freeing changes
Revision 6Jan. 26. 2003
add index
Revision 7April 25, 2003
add compilation appendix
Revision 8July 24, 2003
add XPath example
Revision 9Feb. 14, 2004
Fix bug in XPath example
Revision 7Aug. 24, 2004
Fix another bug in XPath example

Table of Contents

Introduction
Data Types
Parsing the file
Retrieving Element Content
Using XPath to Retrieve Element Content
Writing element content
Writing Attribute
Retrieving Attributes
Encoding Conversion
A. Compilation
B. Sample Document
C. Code for Keyword Example
D. Code for XPath Example
E. Code for Add Keyword Example
F. Code for Add Attribute Example
G. Code for Retrieving Attribute Value Example
H. Code for Encoding Conversion Example
I. Acknowledgements

Abstract

Libxml is a freely licensed C language library