Parser fails with a single character empty element
Opened this issue · 0 comments
nhira commented
The parser fails with a single character empty element (such as "
").
The following update to "djohack" should address it:
//djohack
//hack to allow for elements with single character names to be recognized
// additional hack to allow for empty elements with single character names to be recognized (e.g., "
" and "
")
if (((iDE - iB) > 1) && (SAXStrings.indexOfNonWhitespace(this.m_xml, iB, iDE) != iB)) {
return this._setErr(XMLP.ERR_ELM_NAME);
}
// end hack -- original code below