14,253 questions
Advice
0
votes
1
replies
33
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, ...
0
votes
0
answers
70
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 ...
4
votes
1
answer
126
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
36
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
0
answers
36
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&...
0
votes
0
answers
51
views
How can the classes generated from schema and wsdl files be used in other .NET projects?
I am working on a .NET 3.5 framework project with a WCF service. I generated classes from klm.xsd and abc.wsdl files using the xsd.exe and wsdl.exe tools respectively.
These tools generated the ...
0
votes
0
answers
53
views
How to use JAXB to generate map in Java classes
I'm working with a large XSD schema containing many xsd:element entries that have a xml:lang attribute. I would like to use JAXB with a custom binding to generate a Map<String, String> in the ...
0
votes
0
answers
61
views
Maven Fails to Generate JAXB Classes from XSD in Spring Boot SOAP Web Service
I am attempting to build a simple Spring Boot SOAP Web Service Application based on the Maven build tool.
Java Version - jdk-17.0.4
Maven Version - Apache-maven-3.9.6
When attempting to build ...
0
votes
1
answer
61
views
what is the xsd format to validate for placeholder substitution
I want to be able to specify a attribute in xml can be a specific value or an xml substitution
e.g.
<my_element value1="barney" value2="${otherPerson}" />
I tried
<xs:...
1
vote
1
answer
59
views
XDocument validation throws exception on ##other
I'm trying to validate xml against xsd files with validation done with XDocument but it constantly fails on that element called ##other. I tried generating xml for that xsd here https://www.liquid-...
0
votes
0
answers
64
views
Class Generation with jaxb-maven-plugin from org.jvnet.jaxb with nested xsd
My project setup is as follows :
There are two XSD's : sample1.xsd and sample2.xsd. The classes from these two xsd's are generated into two different packages in my java project : com.sample1 and com....
1
vote
2
answers
119
views
JAXB Context expects empty namespace no matter what
I am facing an issue when unmarshalling an XML to my XJC Schema based generated classes using JAXB. I have read every post I've found so far, trying already who knows how many things, without success.
...
0
votes
2
answers
45
views
xml schema (xsd) nested choice
I'm currently on it to write a SDK around a pretty old and convoluted xml standard. There is a xml schema given and I'm confused by this construct:
<xs:complexType>
<xs:choice maxOccurs=&...
0
votes
1
answer
123
views
Unable to deserialize XML element with namespaces
I have been trying to deserialize an XML file and pull out some data from StructuredText element of the XML. So far, namespace have been causing issues.
I generated the classes with xsd from a schema ...
0
votes
1
answer
61
views
NullReferenceException compiling an XML schema that includes an <xsd:import /> in SaxonCS 12.5
I'm getting a NullReferenceException when calling Saxon.Api.Processor.SchemaManager.Compile() on a valid schema that imports a schema in a different namespace. I'm using SaxonCS 12.5 via NuGet in a ....
0
votes
1
answer
47
views
Is there any solution to display xml data in order when import to excel?
I generated xml data in php from mysql, like this:
<?xml version="1.0"?>
<data>
<abc><yearperiod_2024_12>14.522</yearperiod_2024_12></abc>
<abc><...
1
vote
1
answer
77
views
How can I create multiple inheritance or polymorphism in XML Schema?
I want to be able to represent two different XML structures with the same schema:
One:
<polly> wibble </polly>
Two:
<polly>
<element> foo </element>
<element> ...
1
vote
1
answer
45
views
XML Schema: how to add an attribute with restriction to a element with a sequence of child nodes [duplicate]
I want to add a attribute with restriction, to an element that has a sequence of child nodes. Element 'car' has a sequence for its child nodes. And attribute 'condition' for element car, has a ...
0
votes
0
answers
79
views
Dozer error detected when validating the file beanmapping.xsd
I'm working on a old project with java 8 and spring boot 1.5.10.RELEASE.
I have spent all day configuring it on my device, I successfully managed over 100 errors detected by Spring Tool Suite 4 (...
-1
votes
1
answer
29
views
Problem with adding XSD attribute to <all> type
i have an XSD file. I try to add an attribute but i have a compilation problem, the XSD is not valid.
If i test with sequence and not all type, i success to add an atribute, this is not difficult, for ...
0
votes
1
answer
41
views
XSD with dynamic pattern value with dynamic quantifier
I want to define an XSD which has a sequence of elements each representing a comma seperated list of values, with some restrictions. The element definition looks in principle like this:
<xs:element ...
1
vote
1
answer
63
views
How to validate XML data against blacklisted keywords using XSD?
I am trying to validate xml data against a list of blacklisted/prohibited words using XML Schema Definition(XSD) in Java. Is there a way to define the blacklisted words in XSD and raise error if the ...
0
votes
0
answers
53
views
Python library that takes as input a complex XSD and outputs the an XML
I know my question is not crystal clear but i'd like to find a robust and reliable python library that is taking as input a complex Xml Schema Definition file and produces the an XML file. For example ...
0
votes
0
answers
36
views
Is there a way to add a common/global restriction to all element in XSD?
I want to add a common/global restriction to all my elements, is there a way to add a restriction to all element in XSD instead of applying the restriction one-by-one to each element. Below is the ...
0
votes
1
answer
115
views
Excel Office Add-Ins manifest.xml doesn't like namespace prefixes
When building Excel Office Web Add-Ins, a manifest.xml file is required to describe the service.
Here is a simple one that opens a Taskpanel in Excel:
<?xml version="1.0" encoding="...