-
Notifications
You must be signed in to change notification settings - Fork 35
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
Valid XML not passed validation #125
Comments
@yegor256 please do something about this issue |
@amihaiemil it's yours, please help |
@senleft can you give me the Which makes me thing the whole xml passes patterns validation but it doesn't find the |
@senleft I figured why I got the exception above it's not lack of xsl. And that XmlDocument constructor calls DomParser: which runs that regex pattern. So as it is now, I'd say I did not reproduce it? |
@amihaiemil Yes, I'm absolutely sure about it. I will try to reproduce it and attach the full project source. |
@senleft sure, thanks. I will wait for that since I'm out of leads for the moment :) |
@dmarkov assign someone else; no more time for this :( |
@senleft I reproduced the problem (it's indeed a regex problem), but got no more time for this. Someone else should take it up soon. In the meantime, please don't turn off notifications from this post as in the end, you should be the one to close it. Thanks! |
@amihaiemil 30 points was deducted from your rating |
@amihaiemil someone else will help in this task, no problem at all |
I'm getting the same issue here, I have absolutely valid XML and the pattern returns this exception: The issue seems to be in this string transformation: txt.replaceAll("\s", "") before pattern check. For any reason it is not only removing lines returns, but also whitespaces, so from This is my Java Runtime: |
Please see full stacktrace at http://pastebin.com/zK7HkMK8
Patterns.XML not matches specified XML (attached as planets.txt due github file extension restriction) as valid XML.
planets.txt
The text was updated successfully, but these errors were encountered: