-
Notifications
You must be signed in to change notification settings - Fork 86
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
ill formed XML #237
Comments
@psteckler can you just see what part of the xml is wrong please? |
I could not find an error in the text. Emacs It is possible that the error message was caused by some other issue, which I'll have to investigate. |
I ran the Elisp/libxml parser on that string and it successfully created an S-exp. In fact, I called the function I wrote that wraps the parser, which deletes the contents of the buffer if the parse is successful. After parsing, I verified that the buffer size is 0. That message box is guarded by a check for a nonempty buffer. So I don't understand why that message box appears. Is the problem reproducible? |
Maybe there's a race condition:
|
Working on a fix for that possibility. |
Actually, it's not clear to me why a race might happen, because
In any case, I created #341, which uses temp buffers for XML parsing, instead of a dedicated buffer, if in fact the buffer gets additional data, somehow. If the issue can be reproduced, we can see if this fixes the problem. |
Hi,
When using pg/xml on a large file I get a "ill formed xml" message, see attached file. Sorry I did not manage to minimize the example yet. I will try.
P.
illformedXML.txt
The text was updated successfully, but these errors were encountered: