Details
-
Type: New Feature
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
XStream currently only allows the name of the attribute to be specified. A namespace specififer should also be provided, either as a seperate parameter, or with a QName parameter. It is common for documents to have the class (or type) specifier with a namespace prefix, such as 'xsi: type'. The details of this may vary depending on what the underlying XML implementation is.
Hi Erik,
this can already be done with a driver, that supports namespaces like the StaxDriver. Configure it with the appropriate namespaces and add add the namespace directly defining the attribute. You may also alias the internal XStream attributes, e.g. xstream.aliasAttribute("class", "xsi:type"). Please close this issue, if all your cases are supported and possibly ask the next time on the user's list first. Thanks, Jörg