Re: [xml] Working with base schema definitions
- From: Piotr Sipika <piotreks optonline net>
- To: xml gnome org
- Subject: Re: [xml] Working with base schema definitions
- Date: Tue, 05 Jun 2012 10:54:18 -0400
Abhishek Padmanabh wrote:
Any ideas how I can provide 2 schema files to libxml2 without explicit
dependencies such that it is able to find types in respective
namespaces from base schema document. Or if not then if there is any
other way to achieve this? Btw, xerces-c++ was able to handle this
successfully.
On 06/05/2012 10:34 AM, LAUN Wolfgang wrote:
You can write a third schema file that
- imports the schema file with the type definition
Or you can modify the parsed schema tree in-place. In other words:
If you know which schema is supposed to be the parent one, once you
parse it (and before using it for validation), add a child element to
the root node corresponding to the import element containing the URI of
the other schema.
I realize this is not the most elegant solution, but it's either this,
another schema file (as Wolfgang suggested), or an explicit import
within your (two) schemas.
Best of luck.
P
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]