14,234 questions
Best practices
1
vote
1
replies
66
views
Deprecating XSD Schema elements / attributes
I maintain a fairly large XSD spec and we are deprecating a number of elements, attributes or enumeration values in the spec.
I understand that XML Schema does not include constructs for deprecation, ...
1
vote
1
answer
64
views
How can I get an unordered sequence of 2 elements by using choice in xsd 1.0?
I wanted to do something like this:
<xs:choice>
<xs:sequence>
<xs:element name="estado" maxOccurs="unbounded" minOccurs="1"></xs:element>
<xs:...
1
vote
1
answer
95
views
Generate XML from Rust generated from XSD file containing xs:choice elements
I'm trying to convert a SEPA XSD file (namely pain.008.001.11 from https://www.iso20022.org/iso-20022-message-definitions) to Rust structs which works great so far. Since I want to generate XML files ...
2
votes
2
answers
147
views
Valid regular expression pattern validation in XML
I have a string element in an XML schema that I would like to restrict to the extended Latin character set plus numbers, punctuation, whitespace, etc.
I have tried the following:
<xsd:pattern value=...
0
votes
0
answers
45
views
xml-crypto (v2.1.5) signed XML rejected by API - "Invalid File" despite removing injected Id
I am implementing an XML signing solution using Node.js to authenticate with a strict external API. I need to sign a "Seed" XML to obtain an access token. The API returns an generic "...
Advice
0
votes
1
replies
61
views
BridgeLink 4.6.0: How to validate XML against XSD (with dependent imports) using Lookup Manager? Java access removed
I am working on BridgeLink 4.6.0, and I need to validate XML files (CCD/CCDA) using XSD schemas.
Earlier versions of BridgeLink allowed Java access inside JavaScript (e.g., Java.type, Java.extend, ...
2
votes
1
answer
204
views
XML output from ASP.NET Core Web API (Nautix compliant XML)
I am creating an ASP.NET Core Web API endpoint which will fetch XML output in the Nautix compliant XML. Despite the XmlAttribute set on the class, it does not return attribute in the output. Please ...
0
votes
0
answers
104
views
Generate classes from .xsd fails
I have downloaded xsd files from the Greek government's site here and I am trying to create C# classes.
Most of them will be created fine, but the ones I really need will not, and the cause these ...
0
votes
1
answer
78
views
cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://cfe.dgi.gub.uy":CFE}'. One of '{CFE}' is expected
I have the following XSD:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="http://cfe.dgi.gub.uy" elementFormDefault="qualified" attributeFormDefault=&...
4
votes
1
answer
231
views
lxml: QName value does not resolve to a(n) attribute group definition
I get the following error, while trying to validate XML using a schema:
lxml.etree.XMLSchemaParseError: Element '{http://www.w3.org/2001/XMLSchema}attributeGroup', attribute 'ref': The QName value '{...
0
votes
0
answers
149
views
xsdata dataclass generation from XSD with choice fields
How is it possible using xsdata for the generation of the model (dataclass) from an XSD with choice elements, to perform validations on those choices, so that it only allows one of them to be set?
XSD ...
0
votes
0
answers
54
views
JAXB unmarshaller - how to make empty date element valid?
Say I have for example this XML
<Account>
<AccountValidTo/>
</Account>
where AccountValidTo is defined in XSD as xs:dateTime. I have Java classes generated from the XSD using ...
0
votes
1
answer
63
views
XSD 1.1 assert with XPath containing a predicate involving xsi:type fails
I have an XML document about books:
<books xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<book>
<genreRef>ID000</genreRef>
</book>
&...
0
votes
0
answers
47
views
How do I extract 'requirements' from an XSD file into a spreadsheet?
I am trying to reverse-engineer a data model from an XSD file. The file includes multiple field types, labels, and picklist values. One example is:
<xsd:simpleType name="MeasurementUnitType&...
1
vote
2
answers
82
views
XML schema representation for Open API 'anyOf' definition
I have the following OpenAPI spec for a data type:
ObjRefOrValue:
type: object
anyOf:
- $ref: "#/components/schemas/ObjRef"
- $ref: "#/components/schemas/Obj"
Where
...
