The mothod getComponent(...) or getComponentByNameSpace(...) returns a
list of top-level components. The root element declaration should be in
the list.

Stephen

On Wed, 3 Mar 2004, Benson Cheng wrote:

> Ok, thanks.  I got the XSModel now, how do I know which element
> declaration is the root of the document, seem like all the APIs require
> a name in order to get a element declaration.
> 
> Thanks,
> Benson.
> 
> -----Original Message-----
> From: Lingzhi Zhang [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 03, 2004 3:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Build XSD/DTD model
> 
> 
> 
> You could load the schema into XSModel, which is an interface that you
> could get everything in your schema. You could look at the Xerces xml
> schema api and build a tree based on your needs.
> 
> Stephen
> 
> On Wed, 3 Mar 2004, Benson Cheng wrote:
> 
> > I am trying to write an application that parses a XSD or DTD file, 
> > build a model tree of the XSD/DTD, and then display the model tree in 
> > a tree view.  How can I use Xerces built-in classes to accomplish 
> > this?  May be an example will be great.
> >  
> > Thanks,
> > Benson.
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to