> 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?
CF MX doesn't have that capability out of the box, but accessing the Java API isn't hard. I wrote two UDF for this: http://www.cfmentor.com/code/index.cfm?action=script&id=130 http://www.cfmentor.com/code/index.cfm?action=script&id=129 The links above are from the italian CFUG website, don't worry the code and the comments are in english :-) Ray is taking care of the queque at cflib, so I guess they will appear there as well. You can get sample files here: http://www.massimocorner.com/demos/validateXMLFile.zip http://www.massimocorner.com/demos/validateXMLString.zip > And a follow up question > is, are there any tools that can generate a DTD from an XML doc? XMLSpy is a very powerful tool, I second the recommendation. This very specific capability is also available in NetBeans, a free Java IDE: http://www.netbeans.org/ Of course, automatic DTD generation isn't perfect, but it's an excellent way to get you started. ---------------------------- Massimo Foti http://www.massimocorner.com Co-Author of Dreamweaver MX 2004 Magic: http://www.dwmagic.com/ ---------------------------------------------------------- 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]
