From 94e81cb43908f90ccdeca4d7d459172999d4ae90 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 13 May 2009 17:39:33 +0200 Subject: 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. --- src/xmlpythonizer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xmlpythonizer.h') 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; -- cgit