This is because the document has a default namespace. Try

xmlstarlet sel -N k=http://www.opengis.net/kml/2.2 -B -t -m "/k:kml" -c
. -n BGCCC_2013_100mile.kml

See http://xmlstar.sourceforge.net/doc/UG/ch05s01.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1225227

Title:
  xpath matching fails to match anything but root

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xmlstarlet/+bug/1225227/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to