Questions tagged [xsd-1.1]

Use this tag for questions specific to XSD version 1.1, the successor to XSD 1.0. XSD 1.1 introduced significant new features, and it requires the use of different processors.

As of April 5th 2012, the XML Schema Definition (XSD) 1.1 is a W3C Recommendation; for more information on XSD, see W3C XML Schema.

170 questions
17
votes
5 answers

How to validate XML against XSD 1.1 in Java?

What is the best way to validate XML files against XML Schema 1.1 in Java? I took the code from this tutorial and changed the line where it looks up the factory to use XML Schema 1.1 as I have seen in this code example from the Xerces FAQ. This is…
Vogon Jeltz
  • 275
  • 2
  • 3
  • 8
14
votes
2 answers

How to indicate that an xml schema that requires schema 1.1 features?

If I create an XML Schema that requires schema 1.1 features (especially subtle ones, like removing an optional element in restriction of a base type), what is the best way to indicate that this schema should not be used with a processor that only…
Erwin Bolwidt
  • 30,799
  • 15
  • 56
  • 79
13
votes
1 answer

Does libxml2 supports XSD 1.1

Does libxml2 latest release supports XSD 1.1 for XML validation? I am using libxml2 v2.6.30 for XML validation with XSD (schema) 1.0. But, I it does not support XSD v1.1. I am not sure if the latest version of libxml2 supports XSD 1.1 or not. Any…
Zeeshan
  • 539
  • 4
  • 19
13
votes
1 answer

XML Schema 1.1 not recognizing 'assert' or 'assertion'

I am trying to use the following in an XSD
user2197116
  • 667
  • 3
  • 8
  • 21
10
votes
4 answers

XML validation against XSD 1.1 with Xerces in Java

I have installed Xerces through Maven: junit junit 4.11 test
Vogon Jeltz
  • 275
  • 2
  • 3
  • 8
9
votes
1 answer

C++ implementation of XML schema XSD 1.1?

Is there any existing C++ implementation of the XML Schema XSD 1.1? I found xerces-c++-3.1.1, but it only implements XSD 1.0. The java counterpart of this project does implement XSD 1.1. I am notably looking for a way to implement the 'assert'…
wpb
  • 113
  • 6
7
votes
1 answer

Should I be using XSD 1.1 to build an open standard?

We have been asked to put together a set of schemas for an open XML standard. XSD 1.0 would cope with most of the rules, but it would be a bit messy in places (especially to allow for extensibility) it would also rely on implementers reading free…
Sprotty
  • 5,676
  • 3
  • 33
  • 52
7
votes
1 answer

Dynamic enumeration restriction using XSD 1.1

I am trying to create a schema definition using XSD 1.1 in which outcome of one element is dependent on other. For example, I have drop-down for list of countries and list of states for each country. When a person selects a country, only the states…
Adithya Puram
  • 303
  • 2
  • 6
  • 23
6
votes
1 answer

How to make type depend on attribute value using Conditional Type Assignment

I have an XML file like this I'd like to make an XSD, so that if the value of the attribute "type" is 1, the…
DropDropped
  • 1,253
  • 1
  • 22
  • 50
6
votes
2 answers

Difference between xs:redefine and xs:override in XML schema 1.1

What is the difference between and in XML schema 1.1. I've got two books on XML Schema in front of me and I still can't tell the difference. The only thing that I'm sure of is that both are pervasive and that…
Olumide
  • 5,397
  • 10
  • 55
  • 104
6
votes
1 answer

XML Editor supporting XML Schema 1.1

Can somebody suggest an opensource XML editor/eclipse plugin which supports xml-schema-1.1 specification. Basically, I need it to validate the XML against the XSD on-the-fly, just like in eclipse.
simplysiby
  • 566
  • 9
  • 26
4
votes
1 answer

XSD 1.1 validation for both Java and .NET C#?

I have an XSD with schema version 1.1, and I want to validate an XML against it programmatically via .NET and Java. In .NET I use XmlSchemaSet class to validate XML against XSD, but it throws the following…
Sumthg
  • 103
  • 1
  • 2
  • 10
4
votes
1 answer

XSD "version" attribute semantics

The XSD specification https://www.w3.org/TR/xmlschema11-1/#declare-schema does not specify the semantics for the version attribute: The other attributes (id and version) are for…
xarx
  • 627
  • 1
  • 11
  • 27
4
votes
1 answer

Require XML element in XSD when another element has certain value?

I need a required attribute or element only if a specific value of an enumeration is chosen. Example below:
elnapo
  • 55
  • 2
  • 7
4
votes
2 answers

Programmatically convert an XSD 1.1 schema to XSD 1.0?

How can I convert an XSD 1.1 schema to an XSD 1.0 schema automatically by stripping out all the 1.1 features and leaving only the subset that is compatible with XSD 1.0? I realize that this would impose restrictions on how many XSD 1.1 features you…
ivanatpr
  • 1,862
  • 14
  • 18
1
2 3
11 12