Add xsi:type to XML element

lmykt12

New Member
I have generated classes from xsd using xsd.exe. But now i have a problem that i need to add \[code\]xsi:type\[/code\] to some of the xml elements. So i need the xml to look like something like this:\[code\]<Book> <Name xsi:type="xsd:string">Foo</Name> <Published xsi:type="xsd:string">05.12.1982</Published> <Author>Bar</Author></Book>\[/code\]I know there is something called \[code\]XmlInclude\[/code\] but i cant find a way to use it in my case.
 
Back
Top