Well, you have a lot better chance of making a mistake in the xml
document using cfsavecontent than you will using the xml functions.
But if it is the only way to get your desired result, then its the
only way.

This may be a "why isn't the sky green" argument, but you may need to
ask them why they cant take <node /> instead of <node></node>.  If
they are using an actual xml parser it shouldn't have any trouble with
<node /> and if anything, I would think it would be faster than
<node></node>.  And if they are having to actually parse the file as
text, then it really doesn't make sense that they are asking for it in
xml...  Just a thought...

On 9/14/05, Charlie Griefer <[EMAIL PROTECTED]> wrote:
> On 9/14/05, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> 
> > Yeah, don't use XMLNew ... or CFXML... use cfsavecontent and generate
> > the XML as you would an html page...
> >
> > <cfsavecontent variable="myxml"><cfoutput>
> > <question id="#questionid#">
> >        <eng>#xmlformat(questiontext)#</eng>
> >        <chn></chn>
> > </question>
> > </cfoutput></cfsavecontent>
> 
> Y'know, when I was writing the code that generates the XML document, a
> few people asked me why I didn't just use <cfsavecontent> (since this
> is new area for me, it took me a while to get things working correctly
> with the CF XML functions).
> 
> I was far enough into it that I just wanted to finish what I started
> the way I started...and when I was done, the consensus was that the CF
> XML functions did look "sexier" than a straightforward <cfsavecontent>
> would have...  :)
> 
> ....but sexiness aside...is there any good reason to struggle with the
> CF XML functions when a <cfsavecontent> will do the trick that much
> easier?
> 
> 
> --
> Charlie Griefer
> 
> ================================================
> "...All the world shall be your enemy, Prince with a Thousand Enemies,
> and whenever they catch you, they will kill you. But first they must catch
> you, digger, listener, runner, prince with a swift warning.
> Be cunning and full of tricks and your people shall never be destroyed."
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:218221
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

Reply via email to