in reply to How can I browse & list XPATH of a XML Message?
open file.xml ; for ( /descendant-or-self::node() | //@* ) echo xsh:path(.) (.) ;
To skip double reports for text() nodes and non-leaf nodes, you can add
[not(./*)][not(self::text())]
after the node().
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I browse & list XPATH of a XML Message?
by Anonymous Monk on Oct 30, 2015 at 06:32 UTC | |
by choroba (Cardinal) on Oct 30, 2015 at 07:13 UTC | |
by Anonymous Monk on Oct 30, 2015 at 07:26 UTC | |
by Anonymous Monk on Oct 31, 2015 at 06:47 UTC | |
by Anonymous Monk on Oct 31, 2015 at 07:41 UTC |