
Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
> Hi;
>
[quoted text clipped - 13 lines]
> only
> schema.
I suggest you follow what the warning is telling you. XmlSchemaSet will
allow for the possibility in the future that the first schema might refer to
a second, or that your instance document will some day require more than one
schema to describe it.
> 2) The <purchaseOrder> element is the root node. But how do I know that
> from
> the xsd file? Is the root node always the first one and the rest are for
> references?
The schema fragment you've supplied permits either <purchaseOrder> or
<comment> to be the root node in an instance document that validates against
this schema (assuming it's the only schema being used).
What are you trying to accomplish? What is it about the "root node" that you
want to find out?

Signature
John Saunders [MVP]
David Thielen - 01 Jul 2007 15:04 GMT
We want to have a wizard that helps the user create valid XPath statements
for the xml. So we put the schema in a TreeView that they can click on to
select elements.

Signature
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
> > Hi;
> >
[quoted text clipped - 30 lines]
> What are you trying to accomplish? What is it about the "root node" that you
> want to find out?
John Saunders [MVP] - 02 Jul 2007 16:26 GMT
> We want to have a wizard that helps the user create valid XPath statements
> for the xml. So we put the schema in a TreeView that they can click on to
> select elements.
Ok, then I think you may need to change your schema to have only one global
element, hence only one possible root node.

Signature
John Saunders [MVP]
Hello! Good Site! Thanks you! qqqjlhvztc