John-
Thanks for the offer, but I figured out the parent thing.  It's amazing how much 
clearer your code becomes when you are not staring at it at 2 in the morning.

I do have a question though, is it possible to append a subset of an xml document 
gathered by doing xmlSearch to a second xml document object without looping over the 
results of the xmlSearch?  With msxmldom you can use appendChild method to take a 
subset and append it to another document without looping through the subset and create 
each part of the subset.  I think it's redundant to loop through a subset with MX.  
I've tried doing ArrayAppend(target.xmlChildren,subset.xmlChildren) and it does not 
work.  Am I missing something?

Thanks - Tom

-----Original Message-----
From: John Farrar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:54 AM
To: [EMAIL PROTECTED]
Subject: RE: [cf-xml] ColdFusion MX and XML


Kick me out an XML document today and I will try to take time tonight to
create an XPath function to pull the parent for you. Let me know what
parameter you are searching for (the child) and I will return the parent
and or parents for you. (It can also include looking for children with
certain attributes... and return the parent. Don't do it often... but it
should be very able from my experience... let's see how it works in this
appliation though.

John Farrar

> How would you retrieve the parent node when you do a xmlSearch to
retrieve a subset of an xml document.  You would not have the parent node
in this situation.  Thanks for the links, this helps.
> 
> Tom
> 
> -----Original Message-----
> From: John Farrar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 02, 2002 9:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [cf-xml] ColdFusion MX and XML
> 
> 
> Here are the live docs...
> 
> http://livedocs.macromedia.com/cfmxdocs/
> 
> go to this page...
> 
>
http://livedocs.macromedia.com/cfmxdocs/CFML_Reference/functions-pt022.jsp#3
> 468770
> 
> Let me know if you need more information than this page gives. The
question
> about finding a node's parent node... with XML it seems like you would
know
> the parent node or you could not reach the child node? Were you asking how
> to find a child node? Could you give me an example... that will help.
> 
> John Farrar
> 
> > Does ColdFusion MX provide a way to access typical methods and
properties
> of nodes when working with XML?  How do you find a particular node's
parent
> node for example?
> > 
> > Thanks - Tom
> > 
> > -----------------------+
> > cf-xml mailing list
> > http://torchbox.com/xml/list.cfm
> > 
> 
> 
> 
> 
> -----------------------+
> cf-xml mailing list
> http://torchbox.com/xml/list.cfm
> 
> -----------------------+
> cf-xml mailing list
> http://torchbox.com/xml/list.cfm
> 




-----------------------+
cf-xml mailing list
http://torchbox.com/xml/list.cfm

-----------------------+
cf-xml mailing list
http://torchbox.com/xml/list.cfm

Reply via email to