From 64a07de08039a5316105656ec73faf63df8ed4ab Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 29 Jun 2008 13:33:26 +0000 Subject: [PATCH] Erik HOFMAN: add documentation/changelog --- utils/xmlgrep/ChangeLog | 15 ++++++++++ utils/xmlgrep/README | 62 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 utils/xmlgrep/ChangeLog create mode 100644 utils/xmlgrep/README diff --git a/utils/xmlgrep/ChangeLog b/utils/xmlgrep/ChangeLog new file mode 100644 index 000000000..b04370df3 --- /dev/null +++ b/utils/xmlgrep/ChangeLog @@ -0,0 +1,15 @@ +29-06-2008: + * rename xmlGet(Int/Double/String) to xmlGetNode(Int/Double/String) + * add new xmlGet(Int/Double/String) functions + * rename xmlCompareString to xmlCompareNodeString for consistency + * rename xmlCompareElement to xmlCompareString for consistency + * add a README file with short examples of various functions + +27-06-2008: + * removed some memorly allocation in xmlGetNode and XMLGetNextElement + * use the filesize for mmap and remove the root node from the xml-id + * rearange xmlGetNode to work with complicated xml files + * add the xmlMarkId function to save the id before using xmlGetNextElement + * speed up xmlGetNextId + +23-06-2008: Initial release diff --git a/utils/xmlgrep/README b/utils/xmlgrep/README new file mode 100644 index 000000000..29be06bb3 --- /dev/null +++ b/utils/xmlgrep/README @@ -0,0 +1,62 @@ +# +# Functions to Open and Close the XML file +# e.g. +# id = xmlOpen("/tmp/file.xml"); +# xmlClose(id); +# +void *xmlOpen(const char *); +void xmlClose(const void *); + +# +# Get the Id of a node at the specified path +# e.g. +# xnid = xmlGetNode(id, "/path/to/specified/node"); +# +void *xmlGetNode(const void *, const char *); +void *xmlCopyNode(void *, const char *); + +# +# Functions to walk the node tree an process them one by one. +# e.g. +# xmid = xmlMarkId(id); +# num = xmlGetNumElements(xmid); +# for (i=0; i