Re: [xml] XPath and indentation



Whitespace is siginificant.  Try
      //person[normalize-space(name)=John]

Thank you all. This last advice from Rich is the best solution.
A new question: how do you manage indentation in your XML files?
Do you save them formatted as

<tag>value<tag>

or splitted over multiple lines? Indented or not?
Which functions of the libxml do you use?

Thank you again

Leonardo




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]