-
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
XPath is not working correctly on XML documents with schemas #143
Comments
@skapral here is what you need:
|
XMLDocument should have the initialization of the factory delayed and all the constructors should be private or protected, and the builder pattern should be used. It could look like that:
or (without namespaces):
Of course it will break the "contract" with all the existing code that uses this class. |
@borizm is this what actually prevents using proper search through XMLs with default namespace? |
Assume the following test suite:
...where
pom.xml
is the POM file, taken from Takes framework (link) andpom_wo_schemas.xml
is the same POM file with all attributes from rootproject
element removed.First two tests fail with similar exception:
Third successfully passes.
It seems that either jcabi xml is not workable on XML documents with schemas referenced in root node, or it misses the necessary documentation.
Complete test suite can be found here
The text was updated successfully, but these errors were encountered: