8000 Can't decode the document root as org.w3c.dom.Element · Issue #124 · nrinaudo/kantan.xpath · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Can't decode the document root as org.w3c.dom.Element #124

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

Open
nigredo-tori opened this issue Dec 18, 2020 · 0 comments · May be fixed by #125
Open

Can't decode the document root as org.w3c.dom.Element #124

nigredo-tori opened this issue Dec 18, 2020 · 0 comments · May be fixed by #125

Comments

@nigredo-tori
Copy link
Contributor
scala> "<foo/>".evalXPath[Element](xp".")
res0: kantan.xpath.XPathResult[org.w3c.dom.Element] = Left(TypeError: class com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl cannot be cast to class org.w3c.dom.Element (com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl and org.w3c.dom.Element are in module java.xml of loader 'bootstrap'))

NodeDecoder[Element] should probably have a special case for Document.

@nigredo-tori nigredo-tori linked a pull request Dec 18, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant
0