-
Notifications
You must be signed in to change notification settings - Fork 92
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
Do not ignore XML comments when parsing #508
Comments
There don’t seem to be any other tickets about this. In general, there aren't "plans" for scala-xml except to keep on merging volunteer pull requests that come in and keep doing releases. |
Here is one then: #549; please take a look ;) |
I'll take a look. Thanks for contributing this. |
Since it's new behavior, I guess this could be part of a 2.1.0 release of scala-xml. |
The patch introduces some non-trivial changes to the the library's core parsing infrastructure, but there's no other way to do it. It's worth accepting, IMO. Thanks again for the contribution. |
Isn't every fixed bug new behavior? :) |
Thank you for your kind words! |
True, if fixing comments was a bug fix it would be 2.0.2, but your change is more involved.
Yes, we'll try to get it merged soon. Then your further fixes can be new pull requests. |
Great, thanks! |
scala-xml
usesscala.xml.Comment
to represent XML comments if they are present in the XML literals, and allows constructing comment nodes explicitly; when parsing XML not from a literal,scala.xml.factory.XMLLoader
does not setan instance of
org.xml.sax.ext.LexicalHandler
as an"http://xml.org/sax/properties/lexical-handler"
property on the underlying parser, and does not provide any factory methods that such lexical handler could call from itscomment()
method.As a result, comments present in the XML being loaded get ignored.
Are there any plans to fix this?
Thanks!
The text was updated successfully, but these errors were encountered: