XML Document Depth?
Posted
by CrazyNick
on Stack Overflow
See other posts from Stack Overflow
or by CrazyNick
Published on 2010-03-30T06:09:27Z
Indexed on
2010/03/30
6:13 UTC
Read the original article
Hit count: 523
How to find the depth of the xml file using powershell/xpath?
consider the below xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<title>Harry Potter</title>
<price>25.99</price>
</book>
<book>
<title>Learning XML</title>
<price>49.95</price>
</book>
</bookstore>
depth of the above xml document is 3 (bookstore -> book -> title/price).
© Stack Overflow or respective owner