XML Schemas: Reference or Named Type?

S

Scott Fisher

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top