It must be something I don't know or a bug in XMLStarlet but there seem to be a limitation of number of predefined namespaces you can specify in sel command. For example, I'm trying to query some sections of a xml document that has a lot of namespaces, any predefined namespace after the 2nd one becomes invalid.
Hi folks,
It must be something I don't know or a bug in XMLStarlet but there seem to be a limitation of number of predefined namespaces you can specify in sel command. For example, I'm trying to query some sections of a xml document that has a lot of namespaces, any predefined namespace after the 2nd one becomes invalid.
C:\temp>xml sel -N rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" -N exif="http://ns.adobe.com/exif/1.0/" -N xap="http://ns.adobe.com/xap/1.0/" -t -c "//xap:*" namespace.xml | more
ed command seem to have no problem.
Thanks.
Baiz
I think this was bug 1722425 fixed in 1.0.2