mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-05-28 16:21:32 +03:00
* configure.in libxml.spec.in python/Makefile.am python/TODO python/generator.py python/libxml2class.txt: added more informations in the libxml2-python package including docs. Slightly changed the class hierarchy * python/tests/*: added basic regression tests infrastructure too Daniel
11 lines
176 B
Python
Executable File
11 lines
176 B
Python
Executable File
#!/usr/bin/python -u
|
|
import libxml2
|
|
|
|
doc = libxml2.parseFile("tst.xml")
|
|
print doc.name
|
|
root = doc.children
|
|
print root.name
|
|
child = root.children
|
|
print child.name
|
|
doc.freeDoc()
|