Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Schemas: Reference or Named Type?

Status
Not open for further replies.

crazyfishpants

Programmer
Mar 30, 2004
18
US
When creating an XSD schema, what is better to use: references or named types?

The XML I am working with has recursion in it, making both approaches possible. But which one is better and why?

XML EXAMPLE:

<root>
<type a>
<type a>
...
<type b>
<type b>
<type a>
...

REFERENCE:

element b

element a
reference to element b
reference to element a

element root
reference to element a

NAMED TYPE:

type b

type a
element b
element a

type root
element a
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top