On 6 Oct 2010, at 08:42, Erik Hofman wrote:

>> Does anyone have the necessary fu with an XML-grep tool, to find all 
>> instances of less-than and greater-than in data/Aircraft, where a <value> 
>> tag is the first child? That should find all the likely problem cases.

I just did some testing with an XPath query tool, and as far as I can see, 
there are no other instances of a less-than or greater-than condition where the 
value element is at position 0, in the entire Aircraft/ dir. I'm still learning 
the tool, but when I switch it to look for value elements at position 1 beneath 
a less-than or greater-than element, I get numerous matches, so I'm reasonably 
happy I'm using the tools correctly (command line below if anyone wishes to 
confirm my hackery).

So, fingers crossed, the KAP140 was the *only* affected case in the entire 
tree. Bizarre.

James

Command line (uses 'xmlstarlet' tool, available as a standard package on most 
distros), prints 'found' for each match.

find -name "*.xml" | xargs xmlstarlet sel -t -m 
"//greater-than/value[position()=0]" -o found


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to