You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Minimol M <m....@gmail.com> on 2008/05/16 09:02:41 UTC
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
...
RE: Extracting namespaces from a schema and its imported schemas
Posted by "Sahoglu, Ozgur" <Oz...@intuit.com>.
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:m.minimol@gmail.com]
Sent: Friday, May 16, 2008 12:03 AM
To: c-users@xerces.apache.org
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
...