Hi Stefan,
Yes this should work. Be aware that internally the engine evaluates the expression once per instance. So make sure your expression always resolves into the same result.
Should work, just try it out
I think, in theory yes, but I don’t think this is a good idea. Be aware that SpinXmlElement
represents some portion of XML that was parsed into some kind of Java object structure. So when you attempt to “naively” serialize SpinXmlElement
via JAXB, you will get XML that represents this wrapper object, not the originally wrapped XML and the resulting XML is probably going to be useless. I can imagine that it would be possible to configure serialization in a way that it actually outputs the original XML (after all, SpinXmlElement
still provides access to it) and to get deserialization right as well, but I expect a lot of problems until you get there.
Cheers,
Thorben