Skip to main content

Questions tagged [xsd-validation]

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

xsd-validation
1 vote
1 answer
50 views

What's the issue with this XML? [duplicate]

I'm trying to understand what is the issue with this xml file: <?xml version="1.0" encoding="UTF-8"?> <Request xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
user avatar
0 votes
1 answer
29 views

XSD 1.0 nillable with xs:string type enumeration restriction base

I wanted to confirm my understanding of the XSD nillable attribute as it pertains to a restriction base that enforces an enumeration. For example given the following: <xs:complexType name="...
Andrew Tyson's user avatar
2 votes
3 answers
93 views

.NET 8.0 Not Normalizing Whitespace for xs:token Elements?

I'm working with C# and .NET 8.0.6. I have an XSD that declares a "root" element with xs:token content. When I validate a document with an instance element that has padded content, the ...
voidp's user avatar
  • 87
0 votes
1 answer
30 views

XSD: assert to check that values of several elements from same type are not equal

Using XML version 1.1 For a game I have build a complex structure called "connected_condition". Its code is looking somewhat like this: <xs:complexType name="connected_condition&...
Daniel Janz's user avatar
0 votes
0 answers
39 views

CatalogResolver: Cannot resolve the name 'type' to a(n) 'type definition' component

I'm using a CatalogResolver to validate xml against xsd files. This works fine for most cases but now I have a complex xsd with many includes and imports. Unfortunately this does not work. I tried to ...
gyrosp's user avatar
  • 1
0 votes
1 answer
32 views

XSD Ordering with possible multiple child element

I'm trying to create an XDS for an XML to describe a family. Basically a Mum/Dad being optional and comming in any order, and 0-* children. In this instance you can have the following <family> ...
JPO's user avatar
  • 3
1 vote
0 answers
64 views

Validate XML agains .XSD schema using cxml-rng

I'am trying to verify a bunch of XML files against a set schema stored in .XSD format. As I understand, cxml-rng has support for .xsd, but I cant make it work. Here is the function performing the ...
mhevesen's user avatar
0 votes
0 answers
16 views

Issues trying to add an attribute to a restricted element in XML [duplicate]

I had an XML/XSD that were working fine. But I wanted to change the file by adding an ID attribute to several of the elements. I have spent hours trying various ways to get a valid xsd/xml file, but ...
Siili's user avatar
  • 1
0 votes
1 answer
45 views

XML schema validation cannot find declaration with xsd [duplicate]

I have to validate an xml using xsd files. xsd file companySendType.xsd is: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:CC="http://test.com" xmlns:...
dssof's user avatar
  • 299
0 votes
0 answers
117 views

UBL Invoice validation: Cannot find the declaration of element 'ubl:Invoice'

I have a simple Invoice xml: <?xml version="1.0" encoding="UTF-8"?> <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:cac=&...
sliceX's user avatar
  • 81
0 votes
1 answer
216 views

How to validate XML using SCH (schematron) and XSD in Python?

I'm generating e-invoicing XML files (CII D16B) using Python. These files comply with the EN16931 standard (https://github.com/ConnectingEurope/eInvoicing-EN16931). I need to validate the generated ...
Mayot's user avatar
  • 49
0 votes
1 answer
31 views

Howto detect violation of xsd:unique constraint via XmlReader ValidationType.Schema

The following demo code validates if a XML matches a given XSD. But it does not detect if the XML violates any xsd:unique constraints. Why is that and more importantly, how can I validate unique ...
sa.he's user avatar
  • 1,401
0 votes
0 answers
31 views

Imported XSD elements are always "invalid" [duplicate]

I have a primary.xsd that is trying to utilize an element in secondary.xsd. Validation error on the primary.xsd is "src-resolve: Cannot resolve the name 's:paymentType' to a(n) 'type definition' ...
Mexicano_con_ingles's user avatar
0 votes
1 answer
47 views

Invalid XML element name while it's exactly one that is expected

I am trying to validate an XML document against an XSD, and I can't seem to solve the following error: Element name 'Elektriciteit' is invalid. One of the following is expected: - ...
Peter Verschuure's user avatar
0 votes
1 answer
30 views

How to make the XML pass the XSD validation when using the default namespaces not explicitly defined in XML but present in XSD

I have an XML whose validation fails due to the following issue: The Prefix "example" For Element "example:lotNumber" Is Not Bound., Line '4', Column '19'. The Prefix "example&...
BATMAN_2008's user avatar
  • 3,310

15 30 50 per page
1
2 3 4 5
111