OpenBD / openbd-core

The original open source Java powered GPL CFML runtime engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XmlParse throws Exception

dtsw opened this issue · comments

I get an IOException if i do not supply a DTD to XmlParse. So i looked into com.naryx.tagfusion.cfm.xml.parse.ValidationInputSource

My code works if i rewrite the if then around input.reset() to always do just the "else" part:

//if (input.markSupported()) {
//	input.reset();
//} else {
        input.close();
        is = xs.newInputSource();
        input = is.getByteStream();
//}

My guess is, the reader.close() in XmlSource also frees the stream associated with it, is this possible?

closing this issue as i just realized, i looked at the older code. Sorry for that ;-)