Please bear with me - I'm just switching from CF5. And I'm on BlueDragon7
rather than CF7 or 8. Which may be the difference. Anyway, I'm getting an
error (which you cfthrow) when I try to run the BetterXMLExamples:
Error searching the XML document: The XPath expression, //*, produced an
unexpected error.
Tag Context CFOUTPUT: Line=19; Column=1
+-- CFFUNCTION: Line=139; Column=2
+-- CFRETURN: Line=142; Column=3
+-- CFFUNCTION: Line=152; Column=2
+-- CFTRY: Line=155; Column=3
+-- CFCATCH: Line=157; Column=4
+-- CFTHROW: Line=158; Column=5
Source
155: <cftry>
156: <cfreturn
member.xPathHelper.SelectNodeList(member.xmlDoc.GetDocumentElement().GetOwne
rDocument(), arguments.XPath)/>
157: <cfcatch>
158: <cfthrow message="Error searching the XML document: The XPath
expression, #arguments.XPath#, produced an unexpected error."
detail="#cfcatch.message#<br/><br/>#cfcatch.detail#" type="BetterXML"
errorcode="102"/>
159: </cfcatch>
Error Detail: General Runtime Error<br/><br/>Method GetDocumentElement
could not be found. Check you have correct method name, the method name
casing matches that of the Java class and you've provided the correct number
of arguments.
I tried cfdump of "myXML" directly after the cfinvoke method="init", but
just got a dump of methods? Do I have to register cfc's or something.
Isaac, Thank you - I'm going to have to go through your example with my
reference book in hand.
-----Original Message-----
From: Dominic Watson [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 23, 2007 5:36 PM
To: CF-Talk
Subject: Re: Difficulty adding xml attribute
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295314
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4