java - How to create a generic XSD type -


I have a Java application where I can type XSD with the same type Now I need any type of XSD, on which I can make any type of map. As we have an object type in Java, it is possible to create an XSD.

EDIT: It is possible at complex type level.

Yes, it is possible. Type xsd: anyType . Here's an example:

  & lt; Xsd: element name = "anything" type = "xsd: anyType" />  

(taken from)

Here's a more complex example:

  & lt; Xsd: complex type & gt; & Lt; XSD: complexContent & gt; & Lt; Xsd: ban base = "xsd: anytype" & gt; & Lt; Xsd: attribute name = "currency" type = "xsd: string" /> & Lt; Xsd: attribute name = "value" type = "xsd: decimal" /> & Lt; / XSD: Ban & gt; & Lt; / XSD: complexContent & gt; & Lt; / XSD: complexType & gt;  

(from primer - it is worth attentive to it)


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -