如何从xml文档中获取所有xpath

时间:2022-10-31 11:48:30

How can you get a list of all xpaths from an xml document?

如何从xml文档中获取所有xpath的列表?

<Tee Surname="Ray" Age="24">
<Login id="51" mid="1" "/>
<Server id="1" mid="144"/>
</Tee>

for example i want to get a list of all xpaths from the above xml

例如,我想从上面的xml中获取所有xpath的列表

1 个解决方案

#1


3  

XPath is a search expression. You cannot "get all XPaths" from an XML document. This is like asking for all possible SQL statements from a database.

XPath是一个搜索表达式。您无法从XML文档中“获取所有XPath”。这就像从数据库中请求所有可能的SQL语句。

#1


3  

XPath is a search expression. You cannot "get all XPaths" from an XML document. This is like asking for all possible SQL statements from a database.

XPath是一个搜索表达式。您无法从XML文档中“获取所有XPath”。这就像从数据库中请求所有可能的SQL语句。