//CFDocument parsedDoc = parser.getParseResult();
if(elparso != null){
DocItem rootItem = elparso.getDocumentRoot();
//Find the CFScript Items
CFNodeList circuitscripts = rootItem.selectNodes("//cfscript");
if(circuitscripts != null){
Iterator scriptIter = circuitscripts.iterator();
while(scriptIter.hasNext()){
CfmlTagItem tag = (CfmlTagItem)scriptIter.next();
//Get the full contents,
String tagContents = circuitFile.substring(tag.getStartPosition(), tag.getEndPosition());
cleanCircuits.append(tagContents);
}
}
//Now add all the cfset items
CFNodeList circuitsets = rootItem.selectNodes("//cfset");
if(circuitsets != null){
Iterator setIter = circuitsets.iterator();
while(setIter.hasNext()){
CfmlTagItem tag = (CfmlTagItem)setIter.next();
//Get the full contents,
String tagContents = tag.getItemData();