XSD validations are used to validate the XML file against the stored schema.
Questions tagged [xsd-validation]
1640 questions
0
votes
1 answer
Validate XML against remote XSD (located on server) with imports in java (I use xerces)
I have following XSD namespaces:

Don_Quijote
- 936
- 3
- 18
- 27
0
votes
1 answer
Validating an XML against referenced XSD in C# each element
I am creating a console application to validate xml in C#. when I open the file, validates it against the schema and when it encounters an error in a node then it comes out of node and validates next node in the file. Somehow, though, I can't seem…

Sri
- 33
- 1
- 11
0
votes
3 answers
The specified type was not recognized: name='CD', namespace='urn:hl7-org:v3
I am trying to deserialize an XML file using a c# class that was automatically generated. When I tried to Deserialize the xml file, I am getting an exception 'The specified type was not recognized.' Has anyone experienced this issue before? Your…

Denes
- 47
- 3
- 11
0
votes
1 answer
XML Schema validation failing to validate input taken from regex string sample generators
I am not able to get passed a xsd validation on a specific element.
Before showing my code, please note the xsd I have was received by a 3rd-party, and that I am forced to work stick with, without changes.
The problem: For a given element, the xsd…

Veverke
- 9,208
- 4
- 51
- 95
0
votes
1 answer
Do a global binding to any type that has a specified base restriction
I wish to bind an adapter to any type that has a restriction with base xs:long, how can I achieve this? I wish to do a global binding in a way, but couldn't find any understandable documentation.

buræquete
- 14,226
- 4
- 44
- 89
0
votes
1 answer
Cannot add XML Schema to XML document for VBA Validation
I am trying to validate an XML document using the schema provided online by the FCA.
In the xml file the schema is defined in the headers like this:

Our Man in Bananas
- 5,809
- 21
- 91
- 148
0
votes
0 answers
XML Schema to enforce valid array indexes?
I have an XML file in which I mock up something similar to an array, with the array name being Application, and each element being ApplicationString, each containing an "index" attribute:
…
0
votes
2 answers
Need any element among unordered children
I need to verify the presence a list of children of an XML element, but I also need to allow one of the child elements to be any other element.
For example, if the XML is like this :
banana
apple
…

Kypaz
- 411
- 3
- 11
0
votes
1 answer
Proper XSD for Enum Type
I have a enum class like,
public enum Test
{
a = 1,
b = 2
}
I am creating xsd for these as below

Hary
- 5,690
- 7
- 42
- 79
0
votes
2 answers
Is there a wildcard for elements in XMLSchema validation?
My XML file consists of a general part, which I want to validate, and a special part, which is validated later (using a different xsd file which checks the general part again which is ok since it does not change).
How can I tell XMLSchema to check…

Fabian
- 4,001
- 4
- 28
- 59
0
votes
1 answer
XSD validation Error: s4s-elt-must-match error
Please help to resolve the below error for the XSD as i'm a newbie to xsd
Sample SOAP response XML
…

user3492471
- 93
- 2
- 16
0
votes
1 answer
using xpath in xsd pattern matching?
Is it possible to use an attributes value as part of a pattern match?
eg xsd:
…

user1808348
- 79
- 1
- 1
- 4
0
votes
2 answers
Validate XML element attribute value depending on child element attribute
I have this in XML:
generator/@Mode should be valid only if it matches one of the generator/GenMode/@name. Is it…

kot-da-vinci
- 1,152
- 16
- 30
0
votes
1 answer
XML Schema 1.1 assertions: How to catch a dynamic type error?
I'm currently struggling with assertions in XML Schema 1.1. The XML Schema 1.1 recommendation states that an assertion is violated if an error occurs during its execution. This behavior seems reasonable, but might cause some confusion when trying to…

Joachim S.
- 3
- 1
0
votes
1 answer
XML Error while submitting _POST_ORDER_FULFILLMENT_DATA_ feed to Amazon MWS
I'm getting error code 25 in response to this feed submission below and I can't figure out what is wrong with my XML. I've looked at the xsd and still haven't been able to identify what I'm submitting that is incorrectly formatted.

timbits
- 11
- 2