Why does this XPath expression not return the correct value in xmlstarlet?
问题 I'm trying to extract the contents of the 'coordinates' node in this KML file using xmlstarlet. The KML file validates fine using xmlstarlet itself. I've whittled it down to a small test file containing: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://earth.google.com/kml/2.2"> <Document> <Placemark> <name>eurovelo-5 690</name> <Snippet></Snippet> <description><![CDATA[ ]]></description> <styleUrl>#style390</styleUrl> <LineString> <tessellate>1</tessellate> <coordinates> 10.146948