I'll throw out here that if anyone else ever struggles with doing XML integration in CFML, there's a really great 30-page PDF that Nate Weiss did a few years back. It's still as valuable today as then: http://www.adobe.com/devnet/coldfusion/articles/xmlxslt.pdf Oh, and Paul, if you happen to be on CF 7 or 8, you can skip the CFFILE step. XMLParse now accepts the filename to read in (or a URL) as the first argument. Nice little hidden gem. :-) /charlie
_____ From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Kukiel Sent: Wednesday, February 20, 2008 5:35 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: XML Search Thanks Zac that was it. On Wed, Feb 20, 2008 at 10:49 PM, Zac Spitzer <[EMAIL PROTECTED]> wrote: try <cfoutput># xmlformat(selected[1].XmlChildren[1].XmlText)#<br></cfoutput> On Feb 20, 2008 3:29 PM, Paul Kukiel <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > I have a problem with some XML. > > > > > > <!DOCTYPE TS> > > <TS> > > <context> > > <message> > > <source>Don't ask me again today</source> > > <translation>Don't ask me again today</translation> > > </message> > > <message> > > <source>Cancel</source> > > <translation>Cancel</translation> > > </message> > > </context> > > </TS> > > > > <cffile action="read" charset="utf-8" > file="C:\ColdFusion8\wwwroot\test\ZZ.xml" variable="xml"> > > > > <cfset selected = XmlSearch(xml, "//message") /> > > <cfoutput>#xml#<br/></cfoutput> > > Gives what I need: ie "Don't ask me again today" > > <cfoutput>#selected[1].XmlChildren[1].XmlText#<br></cfoutput> > > Converts the HTML special chars which is not what I want. Ie: "Don't > ask me again today" > > > > It seam's that when I use xmlsearch its converting the chars for me. > > Any ideas on how to handle this as I need the actual text from the xml > special chars and all. > > > > Paul. > > > > > -- Zac Spitzer - http://zacster.blogspot.com (My Blog) +61 405 847 168 -- Paul Kukiel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---