Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
从此 xml 文档中获取城市http://api.hostip.info/
所以我使用了 html dom 解析器。
如果我使用 gml:name 来获取城市名称,我会得到城市名称以及主机 ID 字符串。如何从此站点仅获取城市名称?