XSD validations are used to validate the XML file against the stored schema.
Questions tagged [xsd-validation]
1640 questions
0
votes
1 answer
0
votes
1 answer
Creating WSDL from two XSD using import
I have the following WSDL
The message part elements aren't valid.The elements "request:OTA_VehAvailRateRQ" and "response:OTA_VehAvailRateRS" are not defined in the namespaces but all imports and targetNamespaces do not seem have problems.
I isn't…

josepmra
- 617
- 9
- 25
0
votes
1 answer
XML Schema validator error on attribute declaration
I get an error on validation:
Error - Line 14, 36: org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 36; s4s-elt-must-match.1: The content of 'simpleType' must match (annotation?, (restriction | list | union)). A problem was found…

okonik
- 115
- 1
- 3
- 10
0
votes
1 answer
XML Schema validator error on attribute definition
I get an error on validation:
Error - Line 14, 36: org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 36; s4s-elt-must-match.1: The content of 'simpleType' must match (annotation?, (restriction | list | union)). A problem was found…

okonik
- 115
- 1
- 3
- 10
0
votes
1 answer
XML schema: Oxygen: Cannot resolve ... 'type definition' component
I'm new to xml and I tried to create some complex types. I tried to validate my .xsd in Oxygen but I get "Cannot resolve the name 'state' to a(n) 'type definition' component. 10:70"
I really don't get why. This even happens with tutorial code like…

user3595679
- 3
- 2
0
votes
1 answer
XSD - Validate attribute value based on attribute value in parent element
Is it possible to define an XSD structure such that and attribute on an element can have a certain value only if an attribute on a parent (direct/indirect) element has a certain value?
Example:
…

travega
- 8,284
- 16
- 63
- 91
0
votes
1 answer
Value based conditional restriction in XSD 1.0
Below is my sample XML:
0
1
2
3
I want to add restriction…

Bhushan
- 316
- 1
- 7
- 15
0
votes
0 answers
GML and nullable Foreign keys
In my XSD schema there is a foreign key which is nullable. When I create GML related to that schema, validator says:
Cvc-identity-constraint.4.3: Key 'foreignKey_admKucniBroj_zgrada' With Value 'null' Not Found For Identity Constraint Of Element…

Aleksandar
- 1,163
- 22
- 41
0
votes
1 answer
Validate XML with namesaces via XSD c#
i have a xml file like this:
test
test
test@ds.com
M
…

NoNameR
- 85
- 12
0
votes
2 answers
Validate XML in Eclipse
I have created an XSD schema in Eclipse, and then created an XML file off of it. I am unable to get my XML to validate at all. No matter chat I do to my XML, including removing ending tags and the like, when I click "validate" it tells me there…

Girevik
- 13
- 3
0
votes
1 answer
Woodstox Stax2 XML W3C Schema validation - unique constraint issue
I've been trying to improve performance of XML validation against an XSD schema, in particular with respect to XSD unique constraints, and decided to give a try to Woodstox. I pretty much follow this example, to the extent that I change the…

Simon Righley
- 4,538
- 6
- 26
- 33
0
votes
1 answer
cvc-complex-type.3.2.2: Attribute 'key' is not allowed to appear in element 'props'
I am new to use hibernate in spring. I am trying to set the properties of hibernate through properties prop tag, but it is giving some error, can you please tell what it means and how it can be resolved thanks.
SPRING.XML

Haris Mehmood
- 854
- 4
- 15
- 26
0
votes
1 answer
Element - how to use it properly?
I'm struggling with the problem of the correct use of xsd:key Element in my xml schema to preserve uniqueness of records.
I've seen many working examples, yet when I try to utilize them to fit my needs I can't achieve desired results.
Here's a…

browning0
- 901
- 2
- 11
- 21
0
votes
1 answer
how to add Schema to Marshaller when a Part of XSD is nested in WSDL
I would like to use a XSD to valiade a request for a WebService.
The Problem is that a Part of the XSD is nested in the WSDL and the rest refers to a external XSD.
I want to use always the one which is online.
The only idea I have is to extract the…

MortalFool
- 1,065
- 2
- 14
- 26
0
votes
2 answers
Conditional on value in xsd
Hi, is there any way to add conditions on a tag value?
For example, my xml looks like this:
DAY
Sunday --> TAG IS ALLOWED
…

shay
- 2,021
- 1
- 15
- 17