And how about those dreaded <P> and <BR> HTML tags often scattered throughout cf code.
I might suggest parsing it with regular expressions instead unless you really need to treat it as XML, or want to handle every single tag that CF can support. Or want to get some XML experience just for the fun of it. Also, what are you going to do with custom tags? Having walked that road, and run screaming back from it, Jerry Johnson >>> [EMAIL PROTECTED] 04/08/02 03:49PM >>> You can use a tool like soXML. But is your CFML valid XML? Do you close your cfsets, for example? ----- Original Message ----- From: "James Sleeman" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, April 08, 2002 9:51 PM Subject: parsing CFML > Hi all, > this is a bit of a strange request I guess. I want to parse CFML > files like they were XML files, so that I can access the structure of > the (well formed, no overlapping with html etc) cfml. For example, so > that I can do something like.... > > <CF_PARSECF FILE="mycf.cfm"> > <CFLOOP FROM="1" TO="#parsecf.recordCount#" INDEX="i"> > <CFIF parsecf[i].tag eq "CFCASE"> > I just saw a cfcase, it's value was > <CFOUTPUT>#parsecf[i].value#</CFOUTPUT> and the content of this cfcase > is <CFOUTPUT>#parsecf[i].contents#</CFOUTPUT>... > <CFLOOP FROM="1" TO="#parsecf[i].parsecf.recordcount#" INDEX="j"> > ..... etc ..... > </CFLOOP> > </CFIF> > </CFLOOP> > > has anybody done anything like this ?? > > --- > James Sleeman > > ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

