Re: [xml] How can i do regexp operation?
- From: Jason Viers <lists beanalby net>
- To: s kalyanasundaram gmail com
- Cc: xml gnome org
- Subject: Re: [xml] How can i do regexp operation?
- Date: Thu, 28 Jun 2007 14:59:53 -0400
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]