Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
27 views

import neasted xml file to multiple tables

I am new to databricks and want to import a neasted xml into multiple tables. I have a xml and a xsd which you can find below. Until now I have done following steps: Python Code Import XML to df: # ...
cogimi's user avatar
  • 147
0 votes
1 answer
25 views

Java: XSD 1.1 schema validation of XML with asserts

I want to test generated xml files against a xsd 1.1 file containing assertions and I would like to do that in Java. My xml content is <?xml version="1.0" encoding="UTF-8"?> &...
Rokko_11's user avatar
  • 937
0 votes
1 answer
17 views

Weird phenomenon when parsing xsd file in python (specifically with line numbers/reference)

I am parsing an XSD file and there is a weird phenomenon happening when I am parsing. I have this element for example: <xsd:element name="Example" type="ExampleType" minOccurs=&...
Broderick Boucher's user avatar
0 votes
0 answers
11 views

Is there an xjc argument '-nexclude' equivalent in jaxb-maven-plugin

I'm replacing cxf-codegen-plugin with jaxb-maven-plugin. While using the cxf-codegen-plugin, they were using -nexclude argument to exclude certain package in a namespace from generating. I'm trying to ...
Kumar_M's user avatar
0 votes
1 answer
44 views

XSD format issue

I'm using Azure Logic Apps to retrieve data from MS Dynamics Business Central. This data is transformed into an XML using an XSD format. The XML is then send to an external system. I managed to get ...
jandemul's user avatar
0 votes
1 answer
21 views

xsd2java generates classes with same names because the xsd has elements with the same name nested within one another [duplicate]

Here is how my xsd looks: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified&...
Abhinav's user avatar
  • 195
0 votes
1 answer
26 views

Jaxb get Root Element which validated an XML against a multiple Root Elements XSD

We have an xsd with multiple possible root elements. The xml to validate can adopt any of them, but obviously once per xml. I cannot divulgate the actual xsd but let's imagine something similar: <?...
Patcha's user avatar
  • 1
0 votes
0 answers
22 views

JAXB: Handle conflicting imported xsds

I have a ton of xsd files which I do not have under control (it's externally managed). My program should handle new xsd files without adapting code. I would like to generate Model classes for these ...
Rokko_11's user avatar
  • 937
1 vote
1 answer
20 views

XSD schema; In a sequence of elements, is there any way to specify, that any number of unspecified additional elements is allowed? [duplicate]

So, I want to write an XSD, that checks, if a list of elements contains specific required elements, but apart from them, any number of other elements is allowed, at any position of the list. Is there ...
user16038501's user avatar
-1 votes
1 answer
25 views

Remove elements/attributes of XML by XSD

I want to remove all elements and/or attributes of a .xml-file that not match definitions of a .xsd-file. I provide simplified version of a XML-XSD-filepair, but they actually have more attributes. So ...
koji0285's user avatar
0 votes
0 answers
32 views

Did XML parsers and schema validators change on XL-Deploy version 22?

I thought that the core of XL Deploy relied on Java-based parsers like JAXB or DOM for XML processing. I imagined that classes like javax.xml.validation would be embedded in XL-Deploy source code (...
Claudia Martins's user avatar
1 vote
1 answer
34 views

How to xsd validate formatted text with length restriction

I fail to create a xsd file to validate a comment element. The element "comment" can contain text and optional children <b>, <i>, <ul> The children elements can be nested ...
Andreas's user avatar
  • 358
0 votes
0 answers
26 views

joining two xsd schemes generated from xml that has different target namespaces

I have a problem: when I generate from XML to XSD i get two schemes, because i have different target namespaces. Now I need to join them together but I always get error that it cannot access the file ...
pipras's user avatar
  • 9
0 votes
0 answers
28 views

XML: Condition for the necessity of an element in an XML schema

Is it possible to specify a condition for the necessity of an element in a complex type in XML based on the presence/absence of a value for an element from another complex type? For example, there is ...
Denis Galimov's user avatar
1 vote
1 answer
23 views

The markup in the document preceding the root element must be well-formed in .dtd file

I have next files: <!ELEMENT notes (note+)> <!ELEMENT note (to, from, heading, body)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)> <!ELEMENT heading (#PCDATA)> <!...
P3ntium's user avatar
  • 11
0 votes
1 answer
39 views

Does Java's SchemaFactory actually fetch the XML schema from w3.org?

Suppose I validate some XML with the following code: SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); Schema schema = factory.newSchema(localXsdFile); Validator ...
ahelwer's user avatar
  • 1,759
1 vote
1 answer
60 views

'xsd' is not recognized as an internal or external command

Our cruise control has been having a build failure due to: 'xsd' is not recognized as an internal or external command C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\...
Michele's user avatar
  • 3,865
0 votes
0 answers
34 views

How to represent a checkbox correctly in XSD?

I have a checkbox on the UI with 3 values A,B,C. I would like to create an XSD that describes this data set I know that this is a very basic question, but I did not find anything on this here. What I ...
László Fülöp's user avatar
0 votes
1 answer
25 views

Do unmentioned element attributes in a complexContent xsd:restriction copy over from the parent type?

If an element in an xsd:restriction doesn’t have an attribute used by the matching element of the complex type the restriction is derived from, what is the calculated value of the attribute for the ...
Jason Whittle's user avatar
1 vote
1 answer
94 views

XBRL validation error: xbrldie:PrimaryItemDimensionallyInvalidError

Based on taxonomy I have I try to present answers in following table structure: Based on my current understanding (which may be wrong as I am relatively new to xbrl) I build XBRL instance: <...
Kishieel's user avatar
  • 2,033
0 votes
1 answer
119 views

A standard way to lossless store xml info as json?

I am currently working on a project that is migrating from using XML data stored in postgresql to json stored in mongodb. The catch is: maintaining a certain degree of backward compatibility is needed,...
Cidos's user avatar
  • 1
0 votes
0 answers
28 views

Overriding xsd complex type with simple String in jaxb bindings

I am having a WSDL which I must use and not modify. In the WSDL there is a type 'TextType' defined without any elements. This 'TextType' is actually meant as simple String (which is only described in ...
Chris Brown's user avatar
1 vote
0 answers
45 views

How to sign XML document created using XmlSerializer and autogenerated classes from xsd.exe

I am having problems signing XML file created using auto-generated classes using xsd.exe on XML Schema. My schema looks like this: <?xml version="1.0" encoding="utf-8"?> <...
Nikola's user avatar
  • 105
1 vote
1 answer
100 views

Create XML using XDocument or from XSD schema using xsd.exe and XmlSerializer?

Why use xsd.exe tool to create class for XSD schema and then use serializer to create XML file, when you can use XDocument. Should I be always using XDocument and manually create the XML document by ...
Nikola's user avatar
  • 105
2 votes
1 answer
47 views

A cleaner way of writing an XSD document

Is there a cleaner way of writing a XSD document. I find that the code is very difficult to read whene there is lots of attributes and extended elements. This is my XSD example: I added a few ...
K1995's user avatar
  • 23
0 votes
1 answer
142 views

What is the proper pom configuration to use jaxb2:xjc

I am attempting to use jaxb2:xjc to generate domain java files form multiple .xsd files. The following is the build portion of my pom.xml file: <plugin> <groupId&...
Donald F. Coffin's user avatar
0 votes
1 answer
51 views

Is redefinition of attribute values in extension allowed?

Does the official specification of XSD allow to re-define attribute values (with default/fixed) in derived types with <extension>? Both MSXML and Xerces-C allow this, but not libxml2 (does not ...
Davide Capodaglio's user avatar
0 votes
0 answers
46 views

Can an XSD have two elements with same name whose type is determined by an attribute value

I need to make an XSD schema (version 1.0) that is used for creating XML files by our clients, and for validation of the XML by us. Is it possible to make a XSD schema for the following XML file: <?...
Nikola's user avatar
  • 105
0 votes
1 answer
95 views

XML Schema with extension of a mixed element

In short, my doubt is: extending a mixed element type in W3C XML Schema, do we have to declare mixed="true the extended element explicitly? Or does this derive implicitly from the fact that the ...
max66's user avatar
  • 66.1k
1 vote
2 answers
93 views

XPath: How to access information inside xs:appinfo element on an XML Schema

I'm struggling with accessing information inside xs:appinfo element using XPath I have another well-structured XML inside an xs:appinfo element. Is there a way to directly access a certain element of ...
Thomas Schwere's user avatar
0 votes
1 answer
58 views

XML base64Binary extension as Python dict

I got XML element: <xs:element name="Files" maxOccurs="unbounded"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:...
Krzysiek's user avatar
0 votes
2 answers
97 views

XSD specify occurrence fits value in xml

If I have an element in an xml that is an integer representing a count n. And if I have an element with a sequence of elements that have an attribute id that should start at 1 and go up till n. Is ...
FordPrefect's user avatar
0 votes
0 answers
109 views

jaxb2-maven-plugin cannot generate enums

I have an xsd file, and using jaxb2-maven-plugin ver 3.2.0 to generate java classes. But the enums are not generated, even I tried it in the bindings file. Here the excerpt of the xsd file <xs:...
OllieBond's user avatar
1 vote
0 answers
46 views

How to include base64-encoded PDF content in JSON-LD?

I'm working on a project where I need to include base64-encoded PDF content as part of a JSON-LD document. I have a basic structure for my JSON-LD, but I'm unsure how to properly format the "...
Sreenivasulu Reddy's user avatar
0 votes
1 answer
51 views

Azure Databricks: PySpark: Unable to validate XML file using XSD

Here is what I did. Created an XML file xmlPath = "dbfs:/mnt/books.xml" xmlString = """ <book id="bk103"> <author>Corets, Eva</author> &...
Rabindra's user avatar
0 votes
0 answers
64 views

Is there a way with XSL to include templates on different nested levels of other templates?

Apologies for the confusing initial question, I wasn't sure exactly how to phrase it. I need the element to appear both inside and outside the other elements. Please find below my current XSL <?...
thern's user avatar
  • 61
-1 votes
1 answer
153 views

How to combine multiple XSD schema files into one XSD schema file [duplicate]

I'm trying to import data from XML to SQL. Here we have around 10 xmls with different schemas. I'm using SSIS to import data from XML to SQL. But here I need to generate 10 XSD schema files for each ...
Sreepathi's user avatar
  • 109
0 votes
2 answers
25 views

Is it possible to use the attribute xml:lang in a xsd?

Now I am trying to make a xsd file based on xml just as below (the xml almost not editable): <?xml version="1.0" encoding="utf-8" ?> <root> <myname> ...
wq.D's user avatar
  • 13
0 votes
1 answer
33 views

RabbitTemplate XSD has unmatching property "return-callback"

I am not sure this is a bug or (more likely) my misunderstanding on how spring/XSD work. I have this xml-defined rabbitTemplate : <rabbit:template id="rabbitTemplate" ...
Marvin's user avatar
  • 1,686
0 votes
0 answers
17 views

How do I change my SUMO option --collision.action from the default value "teleport" to "none"?

I need to set SUMO (Simulation of Urban Mobility) so that no action is taken when vehicle collisions occur. To do this, I need to change the --collision.action option, which by default has value "...
Li399's user avatar
  • 1
-2 votes
1 answer
41 views

XSD import without attributes

I'm wondering whether the following XSD line is valid and what does it mean should it be valid? <xsd:import/> Full code can be found here
Mykhaylo Adamovych's user avatar
0 votes
1 answer
81 views

Invalid XSD schema using libxmljs with NodeJS with flattened XSD

I want to validate an XML document against an XSD schema. I'm using libxmljs 0.33 with NodeJS 18. I keep receiving this error: Error: Invalid XSD schema at createPDF (/root/workspace/app/apps/...
Alaa Eddine Cherif's user avatar
0 votes
0 answers
14 views

xml: define data type of attribute value by separate attribute [duplicate]

I am trying to validate the value of an attribute against a data type that is defined via another attribute in the same xml document. E.g: <?xml version="1.0" encoding="utf-8"?&...
Robert's user avatar
  • 673
1 vote
1 answer
72 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
31 views

Confusion about controlling XSD type substitution

The following XSD defines the complex types Base, which specifies block="", and Derived, which extends Base and also specifies block="". <?xml version="1.0" encoding=&...
voidp's user avatar
  • 87
0 votes
1 answer
58 views

how to find out all possible hierarchies of elements in a xsd file?

I am working with some domain-specific GML files that are in fact XML files capable of storing geometries of spatial features in GIS domain. I have these two xsd files that describe the data model of ...
milad moradi's user avatar
0 votes
1 answer
46 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
0 votes
0 answers
36 views

How to convert DTD to XSD with Ibatis sqlmap2

I using Java 8 and Struts Framework. I want to convert from DTD to XSD, i.e. remove <!DOCTYPE..., in the sqlMapConfig.xml and sqlMap.xml files. However, there doesn't appear to be an alternative ...
Ngô Hữu Hoàng Nhật's user avatar
2 votes
3 answers
135 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
0 answers
51 views

How to make "jaxb2-maven-plugin" to generate WSDL stubs with the same Java class names in both OSs - Windows and Linux?

I have the following XSD schema (which I am not allowed to change): <?xml version="1.0" encoding="utf-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema&...
LaRRy's user avatar
  • 1

1
2 3 4 5
284