According to XMLSpy, this is a well-formed document until you add multiple <BasmatiL> nodes.
So, when you read this file into a variable, you should be able to just add a new top-level node that encompasses the multiple <BasmatiL> nodes. Then, you should be able to parse the XML file into an actual XML object in ColdFusion. That should make everything fine, from what I can tell. Two hints: 1. Always use CFDUMP when in doubt. 2. Multiple tags, at the same level, such as <BasmatiL>, will result in an array over which you can loop. (Again, refer to CFDUMP to see the structure.) M!ke -----Original Message----- From: Andrew Spear [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 8:43 PM To: CF-Talk Subject: Parsing non-standard XML I'm trying to parse a file for a school district that is supposed to be XML, but it's not well-formed. Does anyone here have experience parsing files like this? The format is something like this: <BasmatiL> <CLASS> <CC> xxx </CC> <SN> xxx </SN> <CNAME> xxxx </CNAME> <MISC1> xxxx </MISC1> </CLASS> <ASSIGN> <DESCR> Chapter 34 Reading Quiz </DESCR> <POINTS> 5 </POINTS> <EALR> </EALR> </ASSIGN> <STUDENT> <ID> asdfasdf </ID> <SCORES> 6,5,14,38,5,5,15,38,5 </SCORES> <PERCENT> 89.9 </PERCENT> <GRADE> B+ </GRADE> </STUDENT> <STUDENT> <ID> 12345 </ID> <SCORES> 7,5,14,47,6,5,15,40,5 </SCORES> <PERCENT> 98.6 </PERCENT> <GRADE> A+ </GRADE> </STUDENT> </BasmatiL> And there are muliple top-level <BasmatiL> nodes in each file. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239875 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