|
Re: Import directives [message #58953 is a reply to message #58928] |
Thu, 31 March 2005 16:46 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Ray,
It's best to look through XSDSchema.getContents() to see if there are
things of type XSDImport. There might be additional prefixes for other
reasons, e.g., within annotations or for non-schema namespace attributes.
Ray wrote:
>Hi,
>
>Is there a simple method of determining whether a schema imports other
>schemas from an XSDSchema object?
>
>i.e. if i load a schema with this directive into an XSDSchema object:
>
><xs:schema xmlns="http://tempuri.org/MySchema.xsd"
>xmlns:xs="http://www.w3.org/2001/XMLSchema"
>targetNamespace="http://tempuri.org/MySchema.xsd"
>xmlns:id="http://tempuri.org/Identifiers.xsd"
>elementFormDefault="unqualified" attributeFormDefault="unqualified">
> <xs:import namespace="http://tempuri.org/Identifiers.xsd"
>schemaLocation="Identifiers.xsd"/>
>.....
>....
></xs:schema>
>
>The only difference i've found is that the qNamePrefixToNamespaceMap there
>would be more entries in the qNamePrefixToNamespaceMap....is using this fact
>fair play?
>
>Many thanks for your help,
>
>Ray
>
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.05428 seconds