node-xml icon indicating copy to clipboard operation
node-xml copied to clipboard

Parser fails with a single character empty element

Open nhira opened this issue 15 years ago • 0 comments

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

nhira avatar Oct 09 '10 00:10 nhira