I don't think CFMX will validate against a DTD, but I'm not sure.

Look at www.xmlspy.com for a great XML application. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Justin Balog
Sent: Thursday, February 05, 2004 9:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [CFCDev] OT: XPath() and getting attributes

Thanks everyone for the response to this.  The xPath tools, and comments
really helped.  I am finally entering the 90s I guess =)  I have one
last question.  Does CFMX (have the capability) or is there a Java class
exist that I can use to validate an .XML against a DTD?  And a follow up
question is, are there any tools that can generate a DTD from an XML
doc?  

Thanks Again,

Justin

-----Original Message-----
From: Justin Balog [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 2:52 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [CFCDev] OT: XPath() and getting attributes


Thanks everybody for getting back to me.  It will take me a bit to
digest and test.....let you know how it comes out.

Thanks again,

Justin

-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 2:25 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] OT: XPath() and getting attributes


On Feb 3, 2004, at 12:54 PM, Justin Balog wrote:
> Would an XPathQueryString look like to find the attributes of an XML 
> tag?

No. XmlSearch() returns "An array of XML object nodes that match the
search criteria". An attribute is not an "XML object node" so you have
to get the nodes back and then drill into them:

> <parent>
>       <child name="jo">
>               <weight value="100lbs"/>
>       </child>
> </parent>

I think the following will work:

<cfset jo_weights = XmlSearch(xmlDoc,"parent/[EMAIL PROTECTED]'jo']/weight")
/>
<cfset jo_weight = jo_weights[1].XmlAttributes["value"] />

Regards,
Sean

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool,
Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool,
Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool,
Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to