Hi Minimol,

I do this by querying the PSVI (Post Schema Validation Infoset). There
is a sample application called PSVIWriter included in Xerces-C++. That
will show you how to create the PSVI. 

The class you need to look into is XSModel
(http://xerces.apache.org/xerces-c/apiDocs/classXSModel.html).


Once you created the PSVI, you get the XSModel from the grammar pool and
then you can get the namespaces from the XSModel(this also contains the
ones from included ones) with his call:

StringList *namespaces = xsModel->getNamespaces();

You will need Xerces-C++ 2.6.2 or higher.


Cheers,


-Ozgur Sahoglu


-----Original Message-----
From: Minimol M [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 12:03 AM
To: [email protected]
Subject: Extracting namespaces from a schema and its imported schemas

Hi,

I want to extract the namespaces from a schema and also from all the
schemas
imported in that.
Any pointers will be of great help.

Thanks and Regards
...

Reply via email to