diff options
author | David Sommerseth <davids@redhat.com> | 2009-05-13 17:39:33 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-05-13 17:39:33 +0200 |
commit | 94e81cb43908f90ccdeca4d7d459172999d4ae90 (patch) | |
tree | 3db44fa4bf4d9173ca4f918f82af91e2af7f5a4e /src/xmlpythonizer.h | |
parent | 40cd1a7ac2f912eb8be659a0c9dbadf5a0b22f14 (diff) | |
download | python-dmidecode-94e81cb43908f90ccdeca4d7d459172999d4ae90.tar.gz python-dmidecode-94e81cb43908f90ccdeca4d7d459172999d4ae90.tar.xz python-dmidecode-94e81cb43908f90ccdeca4d7d459172999d4ae90.zip |
Big rewrite of xmlpythonizer
- Supports relative XPaths now by using the rootpath attribute in the
Map tag. This path is then set for all elements inside this Map tag.
- Rewrote the parser to recurse correctly. The former version did not
recurse well on the very outer (first) Map level.
Diffstat (limited to 'src/xmlpythonizer.h')
-rw-r--r-- | src/xmlpythonizer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmlpythonizer.h b/src/xmlpythonizer.h index 770fa66..6c61381 100644 --- a/src/xmlpythonizer.h +++ b/src/xmlpythonizer.h @@ -32,6 +32,8 @@ typedef enum ptzTYPES_e { ptzCONST, ptzSTR, ptzINT, ptzFLOAT, ptzBOOL, ptzDICT } ptzTYPES; typedef struct ptzMAP_s { + char *rootpath; // XML root path for the data - if NULL, XML document is the root document. + ptzTYPES type_key; // Valid types: ptzCONST, ptzSTR, ptzINT, ptzFLOAT char *key; // for ptzCONST key contains a static string, other types an XPath to XML data ptzTYPES type_value; |