We ran into a problem that sounds similar to what you are talking about, we
where parsing a large XML document, and what we wanted was three smaller XML
documents created from the desired parts of the large one.  The conclusion
is that we didn't want to use XmlSearch(), because as you said, it returns
an array of elements that would take quite a bit of work to put back into an
XML format.

What we did was you <CFXML> to create three dynamic XSLT documents that each
would parse the large document into the desired smaller XML piece.  Took a
bit to figure out all the appropriate XSLT syntax we needed, but once it was
in place, worked like a charm.

HTH
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-----Original Message-----
From: Tim Haak [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 11:36 AM
To: CF-Talk
Subject: Data Returned from XmlSearch()


Hello,

I'm using XmlSearch() to query an XML document in CFMX 6.1.  I want to store
the resulting data in a another variable that is an XML object.  I'm having
some difficulty because the XmlSearch() function returns an array of the XML
nodes that match the XPath search criteria.  I tried using <cfxml> to create
a new XML object from the array returned, but with no success.  My last
resort is to loop through the array returned and re-create a new XML object
but I think there has to be an easier way.

Can anyone provide some guidance or a solution to getting the XmlSearch
returned data back into an actual XML object?

Thanks in advance,


Tim Haak
  _____  

[ Todays  
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to