in reply to Re^2: How can I browse & list XPATH of a XML Message?
in thread How can I browse & list XPATH of a XML Message?

No, that's standard XPath syntax. What made you think it's not?
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
  • Comment on Re^3: How can I browse & list XPATH of a XML Message?

Replies are listed 'Best First'.
Re^4: How can I browse & list XPATH of a XML Message?
by Anonymous Monk on Oct 30, 2015 at 07:26 UTC
    the stacking  [][] and maybe (if thats what you meant) starting with  []
Re^4: How can I browse & list XPATH of a XML Message?
by Anonymous Monk on Oct 31, 2015 at 06:47 UTC
    can you explain it in plain English?

      ./* means child "elements" as in  <b><i></i><em></em></b>, the child elements of b are i and em, there is two

      Saying not(./*) mean no child elements

      self::text() means select text node children

      Saying not(self::text()) select nodes that are not text nodes, as in <p>text</p> p would be an "element" and "text" would be a child node of type text ... don't want those, just the P

      Together they mean not have children and is not text nodes

      What I remember of xpath is you'd write it like this

      ## select any "element" with no kids and no text /descendant-or-self::node()[ not(./*) and not(self::text()) ]

      But apparently ( http://www.w3.org/TR/xpath ) and conditions are also represented with stacking [][][] so its equivalent to

      /descendant-or-self::node() [not(./*)] [not(self::text()]

      Although, you can simply select element nodes with no element children  //*[ not(./*) ]