W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

F1 F1 F1 for Root Element from XML schema

From: Singh, Ajit <Ajit.Singh@ind.xerox.com>
Date: Tue, 14 May 2002 18:31:13 -0700
Message-Id: <5.1.0.14.1.20020514183107.02a5ea50@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
HI All

We are having some problems, regarding getting Root Element(s) for XML
instance against a given schema (programatically) ; One way which we have
understood is "The root will be the element or type that is not referenced
by any other complex type."
Is this the only way to get Root Elements for the XML instance or there is
some else which we have to know. Considering the Input schema can
include/import/refer other schemas.
The logic given is not working, because when we give the same schema to
XML-Spy it gives Two root element i.e (A, B), But when we execute our code
on the same schema it give Root elements as (B, C). This A Element has been
refered in a Element. We are very confuse
Is there some mojor role of NameSpace also, when u go to get RootElements
from schemas.

Please help Me///

Thanks
Ajit
Have a nice day 
Received on Wednesday, 15 May 2002 00:40:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:00 GMT