List,
Thank you all for the info on what XML can do. Youve been very helpful.
DJ
>From: Matthew Drayer <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: [cf-xml] Stupid Newbie Question
>Date: Wed, 30 Jan 2002 16:39:30 -0500
>
>DJ,
>
>I'm currently writing a custom ColdFusion ecommerce application that
>integrates our ecommerce website (previously running AbleCommerce/CyberCash)
>with my company's customer service/order fullfillment system via XML. The
>system has a business logic layer that can accept transaction commands and
>data via HTTPS.
>
>We also obtain product information from the in-house system via XML and
>parse the XML for information that we need in online calculations, UI
>display, etc.
>
>It's more of a data-transmission medium in this case, but it's my real-world
>example :)
>
>Matt
>
>Matthew Drayer
>Web Development Coordinator
>HCPro / Opus Communications
>Marblehead MA
>[EMAIL PROTECTED]
>
>-----Original Message-----
>From: tr7nity tr7nity [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 30, 2002 3:15 PM
>To: [EMAIL PROTECTED]
>Subject: [cf-xml] Stupid Newbie Question
>
>
>
>Hello all,
>
>I have a stupid newbie question for you all. Ive been learning XML and can
>see how you would use it in news headlines and as a way to store information
>(like a database) but why would you want to use it instead of a database. I
>know that XML can send information from database to database or to to use
>from application to application (i.e. using a cfml form to read an xml file
>and using a flash movie to read the same file) but what else can you do with
>it. I am very interested in the subject. What types of things have you
>all seen. The books i have teach you all about how to write xml but none of
>the 3 books that I have on the subject tell me how to use the language in
>real world applications. Also what types of things have you all seen that
>integrates XML and Coldfusion (not just WDDX but XML).
>
>Thanks for the help.
>
>DJ
>
>
>
>
>
>om: Matthew Drayer
>
> >Reply-To: [EMAIL PROTECTED]
> >To: "'[EMAIL PROTECTED]'"
> >Subject: RE: [cf-xml] XPATH QUERY
> >Date: Wed, 30 Jan 2002 09:26:43 -0500
> >
> >Hi Dave,
> >
> >As far as I know, @* is what you use to grab all of the attributes for an
> >element. The one part of your code that appears incorrect is the // near
> >your "report" element. Structure your XPATH like this:
> >
> >//reportGroup[@name="one"]/report/@*
> >
> >and it should work fine.
> >
> >This will return all of the attributes for the report element(s) living
> >inside your reportGroup element with an name attribute holding the value of
>
> >"one".
> >
> >To get more than one specific attribute, you can specify each one with a
> >separate XPATH expression (as with .../report/@name
> > )
> >
> >Matt
> >
> >Matthew Drayer
> >Web Development Coordinator
> >HCPro / Opus Communications
> >Marblehead MA
> >[EMAIL PROTECTED]
> >-----Original Message-----
> >From: Dave McLean [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, January 30, 2002 9:25 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: RE: [cf-xml] XPATH QUERY
> >
> >
> >Thanks Matthew,
> >
> >However you appear to be suggesting that I use...
> >
> >//reportGroup[@name="one"]//report/@*
> >
> >which appears to be incorrect.
> >
> >//reportGroup[@name="one"]/report/@name gives me the name attribute from
>the
> >report elements that belong to the report group with name = "one"
> >
> >what I want to do is
> >
> >a) get all the attributes for these reports
> >b) get more than one specific attribute for these reports
> >
> >Cheers
> >
> >Dave
> >-----Original Message-----
> >From: Matthew Drayer [mailto:[EMAIL PROTECTED]]
> >Sent: 29 January 2002 17:43
> >To: '[EMAIL PROTECTED]'
> >Subject: RE: [cf-xml] XPATH QUERY
> >
> >
> >to get all attributes for an element at any level: //element/@*
> >-----Original Message-----
> >From: Dave McLean [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 29, 2002 12:45 PM
> >To: '[EMAIL PROTECTED]'
> >Subject: RE: [cf-xml] XPATH QUERY
> >
> >
> >So if I need to take this one step further how do I get all the attributes
> >back for the report or more than one specific attribute?
> >
> >I hope you will have some patience with me, I'm at the bottom of my
>learning
> >curve on xpath. I've been using the help from the MS XML SDK but its not
> >easy to find simple answers to simple questions.
> >
> >Cheers
> >
> >Dave
> >-----Original Message-----
> >From: Blitz, Rob [mailto:[EMAIL PROTECTED]]
> >Sent: 29 January 2002 15:06
> >To: '[EMAIL PROTECTED]'
> >Subject: RE: [cf-xml] XPATH QUERY
> >
> >
> >Try "//reportGroup[@name="one"]/report/@name"
> >
> >Rob Blitz
> >Team Leader
> >Web Application Development Team
> >RWD Technologies, MIS
> >410.884.5063 (Office phone)
> >410.884.2749 (Office fax)
> >39:12:42.426N 76:51:42.808W (ICBM)
> >-----Original Message-----
> >From: Dave McLean [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, January 29, 2002 9:56 AM
> >To: '[EMAIL PROTECTED]'
> >Subject: [cf-xml] XPATH QUERY
> >
> >Hi,
> >
> >I have an XML file like the one below and I want to write an xpath query to
>
> >bring back the report names of all the reports in the reportgroup where
>name
> >= 'one'.
> >
> >If I do //reportGroup[@name='one'] then I get data back for all the reports
>
> >but only the text data such as that in . All I want is the name
> >attribute for each report.
> >
> >Can anyone help?
> >
> >Thanks
> >
> >Dave
> >
> >
> >
> > f1,f2,f3,f4
> >...
> >
> >
> >
> >...
> >
> >
> >
> >
> >...
> >
> >
> >
> >
> >David McLean
> >Foundation Network Limited
> >Tel: +44(0) 870 601 1090
> >Mobile: +44(0) 788 162 4338
> >Mailto: [EMAIL PROTECTED]
> >
> >http://www.foundation-network.com
> >Relay(tm) - Partner Relationships- Managed
> >
>
> _____
>
>Join the world's largest e-mail service with MSN Hotmail. Click
>
Here
>-----------------------+ cf-xml mailing list list: [EMAIL PROTECTED]
>admin: [EMAIL PROTECTED] home: http://torchbox.com/xml
>
-----------------------+
cf-xml mailing list
list: [EMAIL PROTECTED]
admin: [EMAIL PROTECTED]
home: http://torchbox.com/xml