Hi all,
When I tried with xerces 2.11.0 I found it doesn't report validation error
for the following schema file when I load schema with
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(schemaFile):
http://www.w3.org/2001/XMLSchema"; >
sorry, paste the wrong schema file in the previous email. Please look at
this one :
http://www.w3.org/2001/XMLSchema"; >
On Thu, Aug 6, 2015 at 5:11 PM, Jim Ma wrote:
> Hi all,
> When I tried with xerces 2.11.0 I found it doesn't report validation
> e
Hi,
I'm trying to write a schema using the 1.1 schema language and I need
to be able to set the targetNamespace attribute on some of the
elements. When I try and create a Validator to validate XML against
the schema however, I get an instance of XMLSchema11Factory but when I
pass the XSD file to t
Hello,
that is interesting, I see targetNamespace in the XML-Schema 1.1 spec
for top level elements and attributes.
http://www.w3.org/TR/xmlschema11-1/
But it is not in the XML Schema.xsd. (only one occurence of
'name="targetNamespace"') on the element.
http://www.w3.org/2001/XMLSchema.xsd
BT
Hi,
Unfortunately I can't just use the targetNamespace in the schema element.
There are top-level elements of the global targetNamespace and also top
level elements from another namespace. Both of these can contain elements
from both namespaces, thus the need to refer to another namespace at the
e