 |
 |
 |
What is an appropriate query to do this regular expression like
matching on an XML doc
What I DO NOT want to do is use DOM/SAX and process the tree in the
client side
I need to figure out if a sequence of nodes appear in order.
Given an XML
(1)
<Root>
<Data Tag="A"/>
<Node>
<Data Tag="B"/>
.
.
<Data Tag="C"/>
</Node>
<Root>
In the above document (1) the tags {A,B,C} appears in order,hence the
query returns true.In the case below the tags are not inorder
and {C,B,A} hence the query returns false
(2)
<Root>
<Data Tag="C"/>
<Data Tag="B"/>
<Data Tag="A"/>
<Root>
Like the document shown above the nodes neednt be in the same
hierarchy. Also note that I am interested in
a pattern A*B*C, ie the doc below is fine
(3)
<Root>
<Data Tag="A"/>
<Data Tag="B"/>
<Data Tag="D"/>
<Data Tag="C"/>
<Root>
Thanks in advance
Manoj
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |