Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Ability to Remove xsi types #981

Unanswered
micthom asked this question in Q&A
Discussion options

Using the XML Serializer I am able to generate XML files however it is adding "xsi" datatypes to a lot of the elements and I would prefer not to reduce size of the XML. If I look at the XML I need to send to the system it does not have these repeated xsi:type="sometype" added. Is there a way to turn these off from generating?

For example:

<device:device_ID xsi:type="cndc:EntityIdentifierType">
cndc:resourcetest</cndc:resource>
</device:device_ID>
<device:configuration xsi:type="device:Configuration"/>

You must be logged in to vote

Replies: 1 comment

Comment options

The xsi:type attribute is necessary when you are assigning derived elements, otherwise the produced xml documents wont pass validations. If you think there is a bug please open an issue. That being said feel free to use the tree serializer, I am sure with xlst you can apply any transformation you want.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /