Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser fails with a single character empty element #5

Open
nhira opened this issue Oct 9, 2010 · 0 comments
Open

Parser fails with a single character empty element #5

nhira opened this issue Oct 9, 2010 · 0 comments

Comments

@nhira
Copy link

nhira commented Oct 9, 2010

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant