Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Getting the parent when the child doesn't exist

From: "Greg Collins" <gcollins_at_msn_dot_com>
To: NULL
Date: 3/3/2009 3:08:00 PM
The scenario requires a full root to destination xpath to be passed in, so I 
can assume that the table node is actually in the XPath. I use error 
handling to determine whether the table node actually exists... but my 
current approach of just walking up from the row to the table obviously 
fails in the case where no row is present.

Again, the assumption is that the XPath is valid from the root all the way 
down to the row (except that there might not be any rows) with error 
handling checking actual presense of row and table nodes.

Yes, this is quite tricky, which is why I though I'd post to see if anyone 
had done something like this.

I will look at the posting on Regex Nested Constructions to see if it can be 
applied to what I'm trying to do. . . though if anyone has done something 
like this before (or has a bigger brainstorm than I've had so far) please 
respond.

-- 
Greg Collins
Microsoft MVP
Visit Braintrove at http://www.braintrove.com



transparent
Print
Mail
Like It
Disclaimer
.

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.

.
.

transparent

transparent