xml-validation Questions

3

Solved

Is it possible to validate JSON with an XSD in Java? I have an application where I receive JSON response, and I would like to validate it against existing XSD. Another part of my application uses X...
Effects asked 22/3, 2016 at 11:17

2

Solved

Do any of the XML libraries in NPM support the validation of XML against an XSD schema? I would look myself, but: $ npm search xml 2>/dev/null | wc -l 212 Note: the xsd package is not what i...
Nihilism asked 13/2, 2013 at 15:12

5

Solved

I tried validating my XML file with a XSD file but I get the following error message: [Error]: cvc-complex-type.2.3: Element 'paragraph' cannot have character [children], because the type's co...
Spile asked 28/12, 2015 at 12:7

5

Solved

I want to do schema validation using an XSD file. When I import the XSD file to Eclipse, without running the validation class, I have the following error: src-resolve: Cannot resolve the name 'd...
Bronwyn asked 18/6, 2015 at 19:59

1

I have 2 xmls : Basically two XSD schemas <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:elemen...
Rickety asked 19/12, 2022 at 9:33

1

We used probatron and saxon to validate a test xml using a given sch file in our java application. Recently, a new rule has been added to the sch file such as <let name="foo" value=&qu...
Muscovite asked 15/8, 2017 at 12:26

5

Solved

I'm trying to validate a really simple xml using xsd, but for some reason I get this error. I'll really appreciate if someone can explain me why. XML File <?xml version="1.0" encoding="utf-8"?...
Wallen asked 9/11, 2012 at 15:12

2

Solved

I have been working on this "advanced" schema for days with the flu and I cannot figure out why it keeps telling me that "sites" is not found. I re-read the chapter and even created a copy to exper...
Determinable asked 2/10, 2015 at 4:7

4

Solved

I am still a bit new to XML Schema etc. and have been working to develop some XML, Schema and a Stylesheet (XSLT). I have made reasonable progress, but then realized that my Schema had stopped work...
Phosphoprotein asked 26/3, 2013 at 16:15

9

Solved

I've tried to read http://www.w3.org/TR/xml-infoset/ and the wikipedia entry. But frankly I'm still not sure what the difference is. The quote : An XML document has an information set if it is...
Gouache asked 8/5, 2009 at 10:34

3

Solved

I have a XML file and I have a XML schema. I want to validate the file against that schema and check if it adheres to that. I am using python but am open to any language for that matter if there is...
Canonicity asked 23/7, 2013 at 19:58

3

Solved

I was a Mac user with BBEdit & Co. Now I'm on Windows with VS Code. I'm looking for an easy solution to validate XML with VS Code. Is there an extension for this? Thanks!
Crosspurpose asked 13/9, 2017 at 12:52

3

Solved

I am validating XML documents against a schema. Some more complex documents/schemas always fail when trying to validate them using this code: DocumentBuilderFactory dbfac = DocumentBuilderFactory...
Apprehensive asked 12/6, 2012 at 13:14

2

Solved

I am using javax.xml.validation.Validator to validate my xml as below - Validator validator = myschema.newValidator(); validator.validate(new StreamSource(new StringReader(xmlString))); I wou...
Agathy asked 2/8, 2016 at 12:53

2

Solved

I put my code in the XML validation website and it gives me this error: Line 8: 4 The markup in the document following the root element must be well-formed. The line that is having an issue i...
Mosul asked 22/9, 2017 at 1:20

1

Is there an easier way to make a group of elements under a complex tag optional in an XSD? (ie, minOccurs for each should be 0)? Currently, I am adding a minOccurs="0" individually to each element....
Gooden asked 16/4, 2020 at 17:44

6

Solved

I am using xsd:all in a complex type. When I miss any mandatory elements while validating it will show all the elements. It will not display the exact missed element. But if I am use xsd:sequence ...
Banky asked 19/4, 2013 at 9:30

2

I'm using the following code to create a DOMDocument and validate it against an external xsd file. <?php $xmlPath = "/xml/some/file.xml"; $xsdPath = "/xsd/some/schema.xsd"; ...
Procrastinate asked 24/9, 2019 at 11:27

2

Solved

I am writing the XSD for an element that has no content, only attributes, which seems fairly straightforward: <xs:complexType name="ViewElement"> <xs:attribute name="Name" type="xs:stri...
Choosy asked 4/5, 2018 at 15:17

6

Solved

I am using XDocument.Validate (it seems to function the same as XmlDocument.Validate) to validate an XML document against an XSD - this works well and I am informed of validation errors. However, ...
Caustic asked 3/2, 2013 at 21:42

4

Solved

Is there any command line tool that validates XML against a XSD version 1.1? Xmllint does not validate version 1.1.
Fayefayette asked 13/9, 2013 at 9:21

2

Solved

I have a schema that i have "flattened" using XML Editor. After i flatten it i get a validation error. What can i do to fix it? Error Message: F [Xerces] Element or attribute do not match QNam...
Pleurisy asked 31/1, 2011 at 15:28

3

Solved

I have this xml-Schema: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="Fussballmannschaft"&gt...
Supernumerary asked 6/7, 2018 at 22:51

0

This post https://mcmap.net/q/957285/-xmlserializer-validation gives a solution on how to validate an xml during deserialization. It also says that similar code can be written for serialization, bu...
Dampen asked 6/11, 2018 at 9:17

2

Ok. I want to set up catalog files for xmllint to fix things so that the dcterms xml namespace is validated from a local document. I believe that I have done everything right, but it simply doesn't...
Tupelo asked 24/7, 2012 at 2:41

© 2022 - 2024 — McMap. All rights reserved.