F1 F1 F1 for Root Element from XML schema

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 Monday, 15 April 2002 13:37:24 UTC