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

Can I get an error on invalid XML? #36

Closed
tonylukasavage opened this issue Sep 12, 2012 · 4 comments
Closed

Can I get an error on invalid XML? #36

tonylukasavage opened this issue Sep 12, 2012 · 4 comments
Assignees

Comments

@tonylukasavage
Copy link

https://github.com/jindw/xmldom/blob/master/dom-parser.js#L71

Right now xmldom just outputs a warning when it encounters malformed XML. It would nice to at least have the option to have this return some kind of error or exception. I need to behave accordingly in my application when it encounters malformed XML and I have no means to do so now.

@tonylukasavage
Copy link
Author

I see work for this is underway here: eb17b3a

Thanks so much for that! 2 things:

  • When is it likely to make its way to npm?
  • Would it be possible to get additional information passed to the functions in the errorHandler? Things like line number, node attributes/properties, or anything else relevant to the error?

@ghost ghost assigned jindw Sep 15, 2012
@jindw
Copy link
Owner

jindw commented Sep 15, 2012

This problem is being processed . no later than next Monday will publish to npm.
Thank you

@tonylukasavage
Copy link
Author

UPdates on this?

@jindw
Copy link
Owner

jindw commented Oct 2, 2012

I'm sorry, late for a week. please try it again.

@jindw jindw closed this as completed Oct 2, 2012
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

2 participants