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: Mon, 15 Apr 2002 09:04:18 -0400 (EDT)
Message-ID: <8317023216D1D511938B0008C7331C9B2EACA5@INDSSDMS01>
To: xmlschema-dev@w3.org
Cc: 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///
Have a nice day
Received on Monday, 15 April 2002 13:37:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:59 UTC