else if(outputFile!=null)is=new InputSource(r=IOUtil.getReader(outputFile, charset));
else is=new InputSource(r=IOUtil.getReader(source, charset));
is.setSystemId(source.getPath());
try{
FeedHandler feed=new FeedHandler(source);
Struct data = feed.getData();
//print.e(data.keys());
//print.e(data);
// properties
if(properties!=null) {
String strProp = Caster.toString(properties,null);
if(strProp==null)throw new ApplicationException("attribute [properties] should be of type string");
pageContext.setVariable(strProp, FeedProperties.toProperties(data));
}
// query or enclosure
railo.runtime.type.Query qry=null;
if(query!=null || enclosureDir!=null){
qry=FeedQuery.toQuery(data,feed.hasDC());
}
// query
if(query!=null) {
String strQuery = Caster.toString(query,null);