Correct XSD Syntax?

P

PeteOlcott

(1) <complexType name="ScriptQueueItem">
(2) <element name="ScriptQueueItem">
(3) <element name="scriptQueue" type="sq:ScriptQueueItem"
minOccurs="1" maxOccurs="unbounded"/>

Is it correct to refer to an XML element as a type, such as the
reference from line (3) to line (2) or must this type be specified as
a type such as the reference from line (3) to line (1)?
 
M

Mukul Gandhi

(1)  <complexType name="ScriptQueueItem">
(2)  <element name="ScriptQueueItem">
(3)  <element name="scriptQueue" type="sq:ScriptQueueItem"
minOccurs="1" maxOccurs="unbounded"/>

Is it correct to refer to an XML element as a type, such as the
reference from line (3) to line (2) or must this type be specified as
a type such as the reference from line (3) to line (1)?

An element declaration cannot be treated as a type declaration. They
are different things, and one cannot be interchanged for the other.
 

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
474,001
Messages
2,570,255
Members
46,852
Latest member
CarlaDowle

Latest Threads

Top