Question

I am just venturing into the realm of XML and I would like some guidance regarding the following please:

When creating my XML document based on a schema in Eclipse I have given an option to choose an element on which my XML document is going to be based.

Is the possible to import/link more than one element from a schema file?

Also is it possible to import complex data types instead of elements in the XML document? And also import multiple data types?

Many thanks for your time.

Result: Thank you all for the knowledge and apologies for not constructing a properly question.

Was it helpful?

Solution

I'm not familiar with Eclipse, which perhaps explains why I don't fully understand what you mean.

Is the possible to import/link more than one element from a schema file?

Any global element declaration (that is, an xs:element with a name attribute appearing as a child of xs:schema) can be used as the root element of your instance document, if this is what you mean.

Also is it possible to import complex data types instead of elements in the XML document?

Any global type definition (that is, an xs:simpleType or xs:complexType with a name attribute appearing as a child of xs:schema) can be used as the value of the xsi:type attribute in your instance document, if this is what you mean.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top