Questions tagged [xsd-validation]

XSD validations are used to validate the XML file against the stored schema.

1640 questions
0
votes
1 answer

Need help in forming regex for validation in XML

I have to handle a particular validation via regex in xml. The user has to enter an ID in which the first four positions should only contain Latin characters (including accents), but no digits, characters from other alphabets, special characters or…
user3756951
  • 45
  • 1
  • 6
0
votes
3 answers

XML Validation: Invalid content was found starting with element

I am facing this problem and not able o resolve it. I have this xsd OFX.xsd. The xml i want to validate with this schema is following
Sumit Kumar
  • 402
  • 1
  • 6
  • 26
0
votes
1 answer

How can I expose rest service xsd to clients

I have developed a rest api and using swagger for creating api docs. I want to expose an xsd to validate the rest service output and also clients will be able to use it to generate classes. What is best way to expose xsd to client? Can I use swagger…
saurav.varma
  • 280
  • 2
  • 10
0
votes
1 answer

XSD Schema Validation Issue

I have this snippet of a schema that fails to validate.
Todd
  • 90
  • 6
0
votes
1 answer

Is It Impossible to have elements with same name in xsd?

My XML looks like . I have two elements with same name. But I am not being able to get those elements in XSD. Here Book is the element that appears twice but has different attributes. All attributes in their respective Book elements are…
SMA_JAVA
  • 471
  • 4
  • 9
  • 18
0
votes
0 answers

Validate XML with XSD

I am very new to both XML and XSD. I am given an XSD file and need to generate an XML file based on that schema. My XSD file looks like this.
pseudo
  • 385
  • 2
  • 19
0
votes
2 answers

Validate XSD 1.1 contents against an external data source?

I've checked this 2009 answer: xsd - validating values from external dictionary file says not but says it only applies to XSD 1.0, not 1.1. I've followed the links in the answer and they don't help (that I can see). This Validation Layer with…
user3779002
  • 566
  • 4
  • 17
0
votes
1 answer

How to validate the xsd file itself

I know that to validate a xml file we use a xsd file which also a xml file. How to validate this xsd file?
Hunsu
  • 3,281
  • 7
  • 29
  • 64
0
votes
2 answers

Verify XSD correctness

I am trying to verify the correctness of a very large schema. Basically I am doing that using XSOM parser using the following code XSOMParser parser = new XSOMParser(); parser.setErrorHandler( .. );parser.parse( IOUtils.toInputStream( xsdAsString )…
Rush
  • 35
  • 4
0
votes
0 answers

Edit XML namespace element

I am trying to validate an XML file using an XSD schema but according to the documentation the namespace for the XML file needs to have something added to the namespace. Is there a function to do this using XDocument or something or must I just use…
0
votes
1 answer

Unmarshal Jaxb class error

I have a xml string which is a response from third party server.
Shashank Degloorkar
  • 3,151
  • 4
  • 32
  • 50
0
votes
1 answer

How can I get the Index position using XSLT

href other a b XSLT:
Anshu Kumar
  • 51
  • 1
  • 7
0
votes
1 answer

ValidationType.Schema validation

I'm new to Schema validation and I'm having a code which performs schema validation using "ValidationType.Schema". There are a few tags which are optional in my output XML file and to validate this I've set the corresponding XSD file tags as…
Amar
  • 303
  • 1
  • 3
  • 19
0
votes
2 answers

XSD validation: N children with additional, different constraints

I have XML that I want to validate using an XSD. It's actually a simple scenario but I could not find the right answer. This is the XML: count 218 maxtime 1
0
votes
2 answers

Creating a complexType from multiple complexTypes

I have a set of certain elements encapsulated in a complexType that are required if a user wants to do business in a certain way (lets call this way x):
HGandhi
  • 1,586
  • 2
  • 14
  • 27