Yeh, with our new XML toolkit (finished and due out tomorrow), you can query
the XML document direct, for the relevant information, and recieve a CF
query back.  A query can be XPath, or even SQL!  There is even an XMLSubset
tag which will select certain nodes from the source document, (using an
XPath), and create a new XML document.  All these tags have inbuilt caching
capabilities to further increase speed on servers.

The problem with converting an XML document to a structure, is extra
overhead, much better to work from the XML document direct.

Here's a quick sample of code, using the new Torchbox XML Toolkit tags:

====================
<CF_XMLDatasource Name="Person">
    <people>
        <person gender = "male" age = "25" county = "sussex">tom</person>
        <person gender = "female" age = "28" county =
"cornwall">sofia</person>
        <person gender = "male" age = "30" county = "oxon">bob</person>
        <person gender = "male" age = "30" county = "oxon">dave</person>
    </people>
</CF_XMLDataSource>
                                
<CF_XMLQuery Datasource="Person" Name="qryAllMales">
    //person[@gender='male']
</CF_XMLQuery>

<CFOUTPUT Query="qryAllMales">
    #person# (#person_age#)<br>
</CFOUTPUT>
==================
OUTPUT:
tom (25)
bob (30)
dave (30)
------------------

Dave Maddison

>>  -----Original Message-----
>>  From: gurjit pawar [mailto:[EMAIL PROTECTED]]
>>  Sent: 25 July 2001 15:10
>>  To: [EMAIL PROTECTED]
>>  Subject: RE: [cf-xml] XML WDDX - whats is its future?
>>  
>>  
>>  I use soxml to store info in the database.....but it semms 
>>  very long winded
>>  to take this approach.
>>  
>>  I usually use the soxml to make a structure and loop the 
>>  structure to find
>>  the relevant information in the xml file, that requires to 
>>  be stored in the
>>  database.
>>  
>>  Are their any other approaches?
>>  
>>  -----Original Message-----
>>  From: Neil Clark [mailto:[EMAIL PROTECTED]]
>>  Sent: 25 July 2001 15:00
>>  To: [EMAIL PROTECTED]
>>  Subject: RE: [cf-xml] XML WDDX - whats is its future?
>>  
>>  
>>  Interesting; and I do use it to store info in the DB as I can hold
>>  structures etc...
>>  
>>  Have you done any decent CMS packages? as the low-end CMS 
>>  market is there
>>  for the taking and to be honest with you the market share 
>>  for a free open
>>  source tool is so large that we would be foolish to no 
>>  approach it, even
>>  from the standpoint of developers.
>>  
>>  The ability to simply copy a folder, add a DSN and then 
>>  start using an app
>>  is paramount today (and Macromedia are so far ahead of MS 
>>  on that front) -
>>  something we have to take into account.
>>  
>>  Neil
>>  
>>  
>>  -----------------------+
>>  cf-xml mailing list
>>  [EMAIL PROTECTED]
>>  http://torchbox.com/xml
>>  
>>  -----------------------+
>>  cf-xml mailing list
>>  [EMAIL PROTECTED]
>>  http://torchbox.com/xml
>>  


-----------------------+
cf-xml mailing list
[EMAIL PROTECTED]
http://torchbox.com/xml

Reply via email to