Re: XML elements start with CF -- throwing an error
Thanks everyone! I used the suggestion of replacing the first in each CF tag with ^ then doing a replace at the end. It worked just fine. I did try using the #Sep# variable but got an error saying I couldn't have # in XML tags. Appreciate the help tremendously! ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198196 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML elements start with CF -- throwing an error
The error with the 'sep' variables is almost certainly because you didn't have your CFXML tag inside a CFOUTPUT tag, so the hashes were being included in the XML directly, rather than being interpreted by CF and converted to nothing so your XML remained valid. That was my bad for not putting the CFOUTPUT tag in my example. But no worries. I like the replace method better anyway. cheers, barneyb On Thu, 10 Mar 2005 10:36:59 -0400, Shawna Hampton [EMAIL PROTECTED] wrote: Thanks everyone! I used the suggestion of replacing the first in each CF tag with ^ then doing a replace at the end. It worked just fine. I did try using the #Sep# variable but got an error saying I couldn't have # in XML tags. Appreciate the help tremendously! -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198233 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML elements start with CF -- throwing an error
The error with the 'sep' variables is almost certainly because you didn't have your CFXML tag inside a CFOUTPUT tag, so the hashes were being included in the XML directly, rather than being interpreted by CF and converted to nothing so your XML remained valid. Duh on my part ... Very good point. Thanks for the help (again!). :) ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198237 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML elements start with CF -- throwing an error
You add a separator in there so that the generated content is unchanged, but the raw code doesn't contain the extra tags: cfset sep = / cfxml ... #sep#cftagname ... / /cfxml Or you could use a different delimiter, and replace it: cfxml ... ^cftagname ... / /cfxml cfset xml = replace(xml, ^, , all) / cheers, barneyb On Wed, 09 Mar 2005 16:26:19 -0400, Shawna Hampton [EMAIL PROTECTED] wrote: I'm fairly new to using CF with XML and have a potential problem I need some help with. I'm using cfxml to create an XML document using elements given to me by a third party. The problem is a few of these elements start with CF (i.e., CFDCurrentJoinDate01/01/2005/CFDCurrentJoinDate or CFIMemberId123456/CFIMemberId). This is the way they have to be named because we're using BizTalk to integrate with a remote, internal database and that's the way it recognizes these elements (in other words there's no changing them). When I test it out I'm getting this error: You are using tags whose name begins with CF, but the tag is not registered with Neo. Either the tag is not completed yet, or have you been playing with the configuration? Unknown tag: CFDCurrentJoinDate. ColdFusion cannot determine how to process the tag CFDCurrentJoinDate because the tag is unknown and not in any imported tag libraries. The tag name might be misspelled. What should I do here to get it to work right? Any help is greatly appreciated! TIA, Shawna -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 50 invites. ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198039 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML elements start with CF -- throwing an error
I wish I could help you. This seems weird to me, as CF_ is reserved, but you *should* be able to use CF as a start to some XML elements. Any ideas? -- Alex Shawna Hampton wrote: I'm fairly new to using CF with XML and have a potential problem I need some help with. I'm using cfxml to create an XML document using elements given to me by a third party. The problem is a few of these elements start with CF (i.e., CFDCurrentJoinDate01/01/2005/CFDCurrentJoinDate or CFIMemberId123456/CFIMemberId). This is the way they have to be named because we're using BizTalk to integrate with a remote, internal database and that's the way it recognizes these elements (in other words there's no changing them). When I test it out I'm getting this error: You are using tags whose name begins with CF, but the tag is not registered with Neo. Either the tag is not completed yet, or have you been playing with the configuration? Unknown tag: CFDCurrentJoinDate. ColdFusion cannot determine how to process the tag CFDCurrentJoinDate because the tag is unknown and not in any imported tag libraries. The tag name might be misspelled. What should I do here to get it to work right? Any help is greatly appreciated! TIA, Shawna ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198085 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML elements start with CF -- throwing an error
On Wed, 09 Mar 2005 18:38:22 -0500, Alex Sherwood [EMAIL PROTECTED] wrote: This seems weird to me, as CF_ is reserved, but you *should* be able to use CF as a start to some XML elements. ColdFusion actually reserves all tags that begin cf for future use, not just cf_ and if you create any CFML page foo.cfm and drop it into the appropriate WEB-INF subdirectory, you will automatically have a cffoo available to you... -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198090 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: XML elements start with CF -- throwing an error
No, this is correct. A tag starting with CF will cause ColdFusion to treat it like a tag. To get around it you could introduce a namespace to your XML, at a guess. Or how about replacing the offending tags with something that works until you're done with processing, at which point change them back. Not the best way to do things but if it works! Ade -Original Message- From: Alex Sherwood [mailto:[EMAIL PROTECTED] Sent: 09 March 2005 23:38 To: CF-Talk Subject: Re: XML elements start with CF -- throwing an error I wish I could help you. This seems weird to me, as CF_ is reserved, but you *should* be able to use CF as a start to some XML elements. Any ideas? -- Alex Shawna Hampton wrote: I'm fairly new to using CF with XML and have a potential problem I need some help with. I'm using cfxml to create an XML document using elements given to me by a third party. The problem is a few of these elements start with CF (i.e., CFDCurrentJoinDate01/01/2005/CFDCurrentJoinDate or CFIMemberId123456/CFIMemberId). This is the way they have to be named because we're using BizTalk to integrate with a remote, internal database and that's the way it recognizes these elements (in other words there's no changing them). When I test it out I'm getting this error: You are using tags whose name begins with CF, but the tag is not registered with Neo. Either the tag is not completed yet, or have you been playing with the configuration? Unknown tag: CFDCurrentJoinDate. ColdFusion cannot determine how to process the tag CFDCurrentJoinDate because the tag is unknown and not in any imported tag libraries. The tag name might be misspelled. What should I do here to get it to work right? Any help is greatly appreciated! TIA, Shawna -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 07/03/2005 ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198091 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54