XSD validations are used to validate the XML file against the stored schema.
Questions tagged [xsd-validation]
1640 questions
9
votes
2 answers
Turn on the validation XSD 1.1 in Intellij IDEA
is any way how to turn on the validation of XSD version 1.1 in Intellij IDEA instead of default 1.0? As I know to be able to validate against version 1.1 the processor should just take -xsdversion:1.1, but I don't see any configuration point in IDE…

Bogdan Nechyporenko
- 1,226
- 2
- 14
- 21
8
votes
1 answer
Validate XML against XSD with JavaScript on client side
I am required to show a user an XMLfile in a friendly way as a result I am creating a tree like structure such as: http://thecodeplayer.com/walkthrough/css3-family-tree instead of showing the user the raw XML.
Right now when creating a new node I am…

Tono Nam
- 34,064
- 78
- 298
- 470
7
votes
1 answer
Distribute XSD files over multiple Maven Artifacts
Here is a small Example of what I would like to achieve:
Maven Artifact A is one of many Webservices and defines a XSD Schema with
definitions for Requests and Responses. (src/main/resources/xsd)
Artifact A depends on Artifact B wich is a simple…

elfwyn
- 568
- 2
- 11
- 33
7
votes
2 answers
How can I specify an element to have an attribute that states how many children it contains in an XML Schema?
Is it even possible?
I know it’s possible to do a restriction based on regex, but that’s not it
I know it’s possible to declare an attribute as a foreign key calculated by an XPath, but it seems it has to be unique
Exemple:
…

sebastien
- 418
- 4
- 7
7
votes
0 answers
How to generate XSD file from OpenAPI 3.0 specification?
I create XML API specification using OpenAPI 3.0 with additional xml metadata, as described in Swagger docs. During development phase I would like to automatically test my endpoint's XML response against OpenAPI 3.0 specification.
What is the best…

Simon
- 551
- 1
- 5
- 11
7
votes
2 answers
XSD regular expression pattern: this or nothing
i'm trying to define an scheme rule in XSD, for which a string is 8 characters long:
42183296
and space-filling is also allowed:
which led me to the XSD:
…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
7
votes
2 answers
Can xs:anyURI contain square brackets in XSD?
XML Validation fails with error:
Element 'CategoryPageUrl': 'http://www.example.com/products?my_query_parameter[]=45' is not a valid value of the atomic type 'xs:anyURI'., line 29
Feed looks like this:
…

Enthusiastic Developer
- 692
- 1
- 8
- 23
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
2 answers
Xsd.exe is unable generate class when Importing ComplexType
I am trying to run Xsd.exe on a XSD file and I am getting following error. I am using IMPORT because host-namespace is different from foreign-namespace.
A2.xsd depends on A21.xsd, which in turn depends on A22.xsd (all are in same folder)
ERROR:…

user1174790
- 309
- 4
- 11
7
votes
1 answer
xsd property set required according to enum value
I have following xsd for my project I am trying to make single xsd for both xmls ACH and CC on basis of Payment Method enum attribute if payment method is Ach then ACHInfo becomes required else CreditCardInfo..
…

Muhammad Mansoor
- 103
- 1
- 1
- 8
7
votes
1 answer
How to instantiate an XSD Element of an abstract type
I'm a java programmer new to XML and web services. I'm trying to create an xml document that conforms to an XSD (which I didn't write) that contains the below snippet. What I want to do is call this web service to copy a mailing. There's an element…

phil-daniels
- 574
- 2
- 10
- 28
7
votes
2 answers
Speeding up XML schema validations of a batch of XML files against the same XML schema (XSD)
I would like to speed up the process of validating a batch of XML files against the same single XML schema (XSD). Only restrictions are that I am in a PHP environment.
My current problem is that the schema I would like to validate against includes…

kraenhansen
- 1,535
- 2
- 15
- 26
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
4 answers
Synchronous XML Schema Validation? .NET 3.5
I know I can validate xml against a schema using a callback method like the following, but is there a way that I can do it synchronously instead of event driven?
One way I thought of would be to set a class member boolean flag IsValidated=false…

M3NTA7
- 1,307
- 1
- 13
- 25
6
votes
4 answers
Validation Error of Spring Beans Schema inside Application Context
after setting up a new Spring-based application, I'm running into trouble with a referenced schema (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd) inside the application context.
appContext.xml

devpg
- 300
- 1
- 3
- 10