简体   繁体   English

编辑xml数据

[英]Editing xml data

I have an .osm file which is basically an xml. 我有一个.osm文件,它基本上是一个xml。 I would like to remove all the elements in it which do not have a "highway" tag in it. 我想删除其中没有“高速公路”标签的所有元素。 The highway tag is an simple xml attribute. Highway标签是一个简单的xml属性。 It's quite a large file and it's not easy to do manually. 这是一个很大的文件,手动操作并不容易。 What would be a quick way to remove all the elements? 删除所有元素的快速方法是什么?

您可能想使用了解OSM文件格式及其语义的osmosisosmfilter等工具。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM