-
Notifications
You must be signed in to change notification settings - Fork 32
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
Issue migrating to 0.90.1, unable to access nl.adaptivity.xmlutil.core.impl.idom.INodeList #234
Comments
It is quite possible that this is an IDE problem. Does it work in gradle itself? If it is an ide issue, it might be that it works in k2 mode. Otherwise if you could have a reproducer that would help. Please also note that there are still some cache issues with multiplatform code, and sometimes resetting IDE state can help. |
@pdvrieze
reproducer |
I've had a look at the example. There are some issues with consistency of the types used. The recommended way to work is to use With those small changes your example works |
@pdvrieze I'm trying to parse this xml...
0.86.3 version I was using
however with new version, exploring via eval window in IDE and I have to cast the node to I'm currently doing main traversal via this
|
Basically the dom2 namespace is for a platform independent dom interface as multiplatform complains with the old approach of type-aliasing the actual implementations directly. Attributes are reserved for elements, so the interface has no attribute on node, but it should be possible to look up namespace uri's as nodes still have parent elements. This seems like a regression. However, if you want to determine the namespace for an element/attribute you should just use the |
Have a look at: Lines 111 to 133 in b8776d3
Also see the soap class implementations in https://github.com/pdvrieze/xmlutil/tree/dev/serialization/src/commonTest/kotlin/nl/adaptivity/xml/serialization/regressions/soap/ Note that your xml actually uses an invalid non-standard namespace for soap (and the |
@pdvrieze |
Having KMP project for android/ios/jvm, going from 0.86.3 to 0.90.1
toml:
I need to iterate over
nl.adaptivity.xmlutil.dom.Node#childNodes
which is a type ofnl.adaptivity.xmlutil.core.impl.idom.INodeList
however IDE can't recognize this type (in
commonMain
, norjvmTest
).My hunch is that there is some issue with the release, I can navigate to source code in IDE, seeing
...0.90.1-commonMain...
, but the INodeList is coming from...0.90.1-commonDomMain...
,however compiler looks like it doesn't see the part of
commonDomMain
am I missing something extra dependency what needs to be brought in or what am I missing ?
The text was updated successfully, but these errors were encountered: