XSD validations are used to validate the XML file against the stored schema.
Questions tagged [xsd-validation]
1640 questions
0
votes
1 answer
Type namespace is not declared or is not a simple type
I am trying to use a type that is defined in one schema file and use it in another. I believe the format is correct but I keep receiving the same error message upon validation.
Main Schema File

TheProgrammer
- 1,314
- 5
- 22
- 44
0
votes
1 answer
XSD schema validating correctly against two sections of my XML document
So I have an XSD document that's validating correctly against my XML up to a certain level. As soon as a I had another DatabaseName element or Webserver element or both, an error comes up saying "element not expected here." Not too sure what's the…

x123
- 13
- 3
0
votes
1 answer
Validate using one element of XSD in java
Is there any way to use an xsd file to validate input of a string?
I have found some examples of xsd being used to validate an xml file, but what I really want is to just use one element of the xsd to validate some user input.
Is there a simple way…

AntonioCS
- 8,335
- 18
- 63
- 92
0
votes
0 answers
How to bind XML to Java code with validation?
It may seems that this issue is so common that it should be resolved, but after few hours of searching I wasn not been able to find a solution besides to write my own binder througth Java Reflection API. It would be nice if there would be some…

arenaq
- 2,304
- 2
- 24
- 31
0
votes
1 answer
Mixed Type XSD Validation help
I've been tasked with building an XSD to validate a given xml, my issue is that some of the XML elements are of the form
1234567
I need to build the XSD that validates the Element 'value'…

Luke
- 3
- 2
0
votes
2 answers
Whats wrong in my xsd schema ? It gives type element is not declared on include of another xsd file
I am trying to validate a xml using schema but the problem is xsd is not valid, i tried ti tested if it valid or not, it gives error XSD schema Error: Type 'testNamespaces:eltyp_string035' is not declared.
My code to verify the schema is here…

xav xav
- 231
- 2
- 5
- 12
0
votes
1 answer
Error validating Xml against Xsd Schema
I have the following Xml which I want to validate against Xsd Schema (below).
I am trying to validate the Xml against the given Xsd Schema using the C# function given below. I am getting this generic kind error message "Data at the root level is…

Shayam
- 27
- 1
- 6
0
votes
2 answers
OAGIS schema ignores node
Problem: When I am sending a request to Biztalk via a PHP SoapClient, I'm losing one node .
Biztalk validates our request by OAGIS schema.
For sending, I convert XML to Array, and send a request like an array, but when check my last soap…

bdn
- 81
- 3
0
votes
1 answer
Import XSD Schema file in another XSD Schema file in mule esb...,
I need to import XSD Schema file in another XSD Schema file, I have tried like
…

Thiru
- 404
- 1
- 16
- 44
0
votes
1 answer
JAX-WS Schema Validation for nillable/required annotations
@XmlElement(required=true,nillable=false)
private String address1;
I've annotated my class with nillable and required fields. However, when the user doesn't submit this field in the XML to the webservice there is no validation error.
Is there a…

DD.
- 21,498
- 52
- 157
- 246
0
votes
1 answer
0
votes
1 answer
xslt transform an xsd validated xml
I have a very strange effect when adding the schemaLocation to my xml-file.
Problem:
When adding the xsi:schemaLocation="Projekt.xsd" to the root element of my xml file, the xslt transformation does not work anymore. When I don't specify the…

xeraphim
- 4,375
- 9
- 54
- 102
0
votes
1 answer
XSD validate element name as variable
I have a list XML elements and I'm trying to write an XSD to validate it. My goal is two-fold. First I would like that the elements' name is a variable (that way I don't force the user to put an specific value). However this variable (the element…

Pol Alvarez Vecino
- 187
- 5
- 20
0
votes
1 answer
0
votes
0 answers
Use self-defined XSD to extend XML based on public XSD
I started out thinking this would be simple, but I'm stuck:
I want to write/read XML files based on a publicly available XSD with a couple of extra elements that I want to define in my own XSD. The XML is principally supposed to look like…

Hovedsjef
- 56
- 6