-
Hi,i'm looking for a way to tell the xml-parser that i'm not caring for namespaces.My SOAP-responses have a dynamic namespace like
the As i don't care for the namespace anyway i was looking for a way to express this to the parser by omitting the namespace-property in the annotation:
But this results in a compiler-error: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
Caused by: java.lang.AssertionError: Unexpected IR element found during code generation. Either code generation for it is not implemented, or it should have been lowered: So my 1st question is, if this is the intended way to "opt out of caring for namespaces" And if so, i appreciate any help in understanding what causes the compiler-error. im using:
Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
After digging a bit deeper, i found this issue you opened at JB a year ago: looks like its still not resolved. What was your workaround? Not using default-parameters in the annotations? Best regards, |
Beta Was this translation helpful? Give feedback.
-
The way to solve this is to use a filter (dynamic namespaces are invalid in XML - different from updating the namespace on an update) to filter the XML before feeding it to serialization. To do this you need to implement |
Beta Was this translation helpful? Give feedback.
The way to solve this is to use a filter (dynamic namespaces are invalid in XML - different from updating the namespace on an update) to filter the XML before feeding it to serialization. To do this you need to implement
XmlReader
(probably actually a subclass ofXmlDelegatingReader
) and make it return the "right" values. Then you can useXmlStreaming
,PlatformXmlReader
orKtXmlReader
to create a reader from whatever source is appropriate, and pass it to the filter. The filter can then be passed to the format to parse (rather than a raw string).