Questions tagged [xmlschema]

XML Schema is a XML-based description of a type of XML document, typically expressed in terms of constraints on the structure and content of documents of that type, beyond the basic syntactical constraints imposed by XML itself. Questions should use xmlschema tag for questions related to XML Schema or schema-related tools. Use xsd tag for the XML Schema Definition language.

XML Schema describes the structure of an XML document with the XML Schema language, which is also referred to as XML Schema Definition (XSD).

XML Schema builds on the basic concepts in XML 1.0 and Namespaces. XML defines content with elements and attributes, and XML Schema defines which elements and attributes as well as in which order they may appear and other constraints in a particular class of XML instances.

In XML Schema, there is a basic difference between complex types which allow elements in their content and may carry attributes, and simple types which cannot have element content and cannot carry attributes (e.g., integers, strings, etc.).

See Also:

59 questions
0
votes
1 answer

Validate XML against XSD schema

I have an XML file to validate against XSD schema. This is how my XML file looks like. myid myname arg1 arg2 These are the validation rules. id and name are unique and…
Buddhika Chathuranga
  • 1,334
  • 2
  • 13
  • 22
0
votes
1 answer

How can I read the schema (XSD) from Saxon after loading an XML & XSD file?

Our program displays a tree control showing the metadata structure of the XML file they are using as a datasource. So it displays all elements & attributes in use in the XML file, like this: Employees Employee FirstName LastName Orders …
David Thielen
  • 28,723
  • 34
  • 119
  • 193
0
votes
1 answer

How to read XML-Data into a dataTable via Powershell and force using correc types via a given XmlSchema?

I am currently struggling to read XMLdata into a dataTable by enforcing a given XmlSchema. Whatever I do, after the Data-Import all Types are set back to "string". I need to force the below ID-column to be of type "int" (not "string" or…
Carsten
  • 1,612
  • 14
  • 21
0
votes
1 answer

Inline children of an element, if there's only one elements of that type

Suppose I want to model a . A product can either have variants (e.g. a T-shirt that comes in different colours), or have a single variant, like a sweater that only comes in one colour. I want to make a schema that allows for both of these…
Alexander
  • 59,041
  • 12
  • 98
  • 151
0
votes
1 answer

What is the problem with XSD base type restriction

I have an XSD which refrences another schema which have a restricted type . When I open it with liquid studio or any other similar application I got the following error Error Invalid particle derivation by restriction - 'Derived element…
Geeky Omar
  • 44
  • 9
0
votes
1 answer

Can I Get The Visual of a Document That I have the XML and Schema of?

I am reading XML files which are actually e-invoices. They have a standart XML format and I was wondering if I could get the visual of the e-invoice from the XML. All the places I have looked on the Internet are showing the opposite(how to read XML,…
Ezgi
  • 23
  • 6
0
votes
1 answer

simpleType definitions xml schema

I am a bit unsure about the different examples I'm seeing on how simpleTypes are declared/defined. From what I see on both sites the syntax description is the same, but the examples differ. In https://www.w3schools.com/xml/el_simpletype.asp I…
dingalapadum
  • 2,077
  • 2
  • 21
  • 31
0
votes
1 answer

XML schema declarations in XML file breaks XSLT transformation

I have an XSD, XML and XSLT file. (simplified) XML:
0
votes
1 answer

Selecting elements from an XSD schema to populate in a Flask app

Ultimately I would like to build a sample xml file based on an XSD schema in a Flask app, then export the input as a valid xml file. I am using the xmlschema package, too. I have the basic structure of a flask app and page with a dropdown menu…
user3927287
  • 193
  • 1
  • 4
  • 13
0
votes
3 answers

Restricting string length in XML Schema

I am new to XML and JAXB, I am trying to add the AdditionalDataDeposit field with restrictions to my XML schema so I can generate the POJO with Maven. When I try to build it in maven the error: blahBlahBlahmsgfactory: Unable to parse input…
user3636602
  • 73
  • 1
  • 10
0
votes
1 answer

XML Schema Definition (XSD) for XML files

How can I check whether a XML file uses a XML Schema Definition (XSD)? For example, if you decompress a signed odt file (LibreOffice or OpenOffice text document), in the directory META-INF is the signaturefile documentsignatures.xml. In this file…
Kaleun
  • 13
  • 3
-1
votes
2 answers

XML Schema- Validating xsd against xml- The content is not valid

This is my XML code-This part is well-formed and contain no errors while doing the validation. Tom Sawyer 10000 Worked at…
sheshna
  • 1
  • 1
-1
votes
2 answers

XSD - List with all fixed values

What would be the correct XML Schema declaration for: ... Variable Content Variable Content ... Every value for…
1 2 3
4