Re: [xml] How can i do regexp operation?



kalyanasundaram wrote:
I have a node like this
<node val="S 100,164.44 D -199> even more complex i have it.

Whoever designed that xml structure did a poor job and completely avoided the benefit of xml. It _should_ look something like <node type="s" val1="100" val2="164.44"..... to allow the XML library to handle parsing the structre. That's what it's for.

But the separation between your values is not part of the xml, it's all part of the attribute value. What you have is a non-xml chunk of data that you need to parse. A separate regex library might be able to help, but it's nothing that libxml should be expected to provide.


Jason




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