]> git.mxchange.org Git - flightgear.git/commit
add parsexml() function, which is a wrapper around the built-in easyxml
authormfranz <mfranz>
Fri, 29 Jun 2007 15:34:38 +0000 (15:34 +0000)
committermfranz <mfranz>
Fri, 29 Jun 2007 15:34:38 +0000 (15:34 +0000)
commita907b29b6ca6a0bf231acf58e90154756e8de132
tree26ee2a2d5d645bda469cf030c6d8ce7e861e907c
parent3482c5bc40b4ae2ce87545eb1bea71dcf0057daf
add parsexml() function, which is a wrapper around the built-in easyxml
parser. Advantages over xml.nas:             (reviewed and OK'ed by Andy)

- faster (33% ... only. I had hoped for more.)
- more standards compliant
- should support UTF
- I don't have to support it.  ;-)

Usage: parsexml(<path> [, <start-tag> [, <end-tag> [, <data> [, <pi>]]]]);

<path> is an absolute file path, the rest are optional callback functions.

Example:
    parsexml("/tmp/foo.xml", nil, nil, func(d) { print("DATA FOUND: ", d) });
src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx