]> git.mxchange.org Git - flightgear.git/commit
Change the low level internals of the xml library to reflect the following;
authorehofman <ehofman>
Sat, 19 Jul 2008 12:18:05 +0000 (12:18 +0000)
committerehofman <ehofman>
Sat, 19 Jul 2008 12:18:05 +0000 (12:18 +0000)
commitb4ab5242ecd88ac1791c333ebd9062697d9c6f24
tree76bd716525194debd14bd91e6123cd14c8e5048d
parent03a180ac8300523eb5fa3f310c675b9bf751d578
Change the low level internals of the xml library to reflect the following;
 * rewrite the code to always recursively walk the node tree when searching
    for a particular node. this is required for cases where a node with a
    particular name is located deeper in a node with the same name;
    for example -r /configuration/device/reference/device would fail in the
    previous verion
  * rename xmlGetElement to xmlGetNodeNum and add the possibility to request
    the nth node with this name
  * rename xmlGetNumElements to xmlGetNumNodes

The drawback is that this is approach slows down processing the files a bit,
but at least it can now find any xml node in any xml file.
Also, no more function changes are planned from now on.
utils/xmlgrep/ChangeLog
utils/xmlgrep/xml.c
utils/xmlgrep/xml.h
utils/xmlgrep/xmlgrep.c