code_junkie

How to generate Java code from an XSD that includes MSFT Serialization: GUID datatypes?

Nov 13th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/MyMessagingTypes"
  3. xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/"
  4. elementFormDefault="qualified"
  5. xmlns:xs="http://www.w3.org/2001/XMLSchema">
  6.  
  7. <xs:import namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  8. <xs:complexType name="MyMessage">
  9. <xs:sequence>
  10. ...
  11. <xs:element minOccurs="0" name="MyPlanID" type="ser:guid" />
  12. ...
  13. </xs:sequence>
  14. </xs:complexType>
  15. <xs:element name="MyMessage" nillable="true" type="tns:MyMessage" />
  16. </xs:schema>
Add Comment
Please, Sign In to add comment