资 源 简 介
Abstract
This Python module allows you to read an XML file and expose its attributes and elements using object notation.
It is an XML node wrapper that allows access to children and attributes using a pythonic syntax. Each attribute and each child element is an object atribute (self.childTag). They can also be accessed using self[childKey], where childKey can be the child position (integer) or its tag (string).
Example
For example, suppose you have the following XML file (sample.xml):
this is item a this is item b - 1
- 2
Hello World
文 件 列 表
XMLElementTest.py
sample.xml
XMLElement.py