An XML Schema file is an XML document, so you can parse it and process it
(say via XPath) like any other document.

http://dom4j.org/guide.html

If its any help, the XML Schema Data Type support has a class called
org.dom4j.datatype.SchemaParser that you might find interesting to look at
the source code; it processes an XML Schema file to determine all the schema
types used.

James
----- Original Message -----
From: "Krishnan, Archana (Cognizant)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 8:27 AM
Subject: Re: [dom4j-dev] Extracting Information from XMLSchemas


> Hi,
> I was looking at a mail list and found that you were working on
"Extracting
> Information from XMLSchemas".
> I need to parse an Input XSD File and retrieve the names of all the
elements
> and their attributes in the XSD File through Java and use these elements
and
> attributes to build an XML File.Can you help me with this?
> Thanks,
> Archana.
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to