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

XSD 1.1: Assert if value of attribute is contained in enum

I have element Config, which contains 3 attributes: device, name and value. Based on @name's value I want to validate attribute @value to be string, int or boolean. I created schema using…
halixx
  • 3
  • 2
0
votes
1 answer

Nagios check_http - from API XMLSchema

I would like to setup the Nagios check "Check_http" to validate the XMLTAG that the value in the XMLTAG is "Licence Valid" Link to the API is http://IPADDRESS/webapi/webapi.asmx/HealthCheck
Dr.Rask
  • 3
  • 3
0
votes
0 answers

Using schema validation: custom date type and datepicker control

I'm using Orbeon 2019.2 CE on Tomcat 8, using plain XForms. I have xml schema for xml docs that will completed by several people, so I need to be conscious of whether the document will be valid before it is complete. For date fields, I understand…
0
votes
0 answers

Common xsd schema for multiple xmls

I want to build a common xsd schema file to validate the below 3 format xmls and xsd to validate only the top 2 levels. Please let know if it's possible.
skumar
  • 985
  • 4
  • 14
  • 37
0
votes
0 answers

nesting and to create arbitrary element selection in XSD

I would like to validate my XML using an XSD. The XML is supposed to contain complex elements with some (none to all) elements of a given set. I think the straight foward solution for the complex element is
Anselm G
  • 1
  • 1
0
votes
0 answers

How to create schema for xml with root tag having sub-tags consisting values with restriction of different data types?

How can the below XML be represented in XSD form when the sub-tags can be of different datatype values?
Test
  • 564
  • 3
  • 12
0
votes
0 answers

How can I convert bulk of xml schema file to JSON file using Typescript?

I should build a code of converting xml schema file to JSON file with Typescript. I am adding a screenshot of xml schema file as a reference. The thing is I am very lost what I should start for this project. I am going to deal with Typescript, so I…
ahh
  • 1
0
votes
1 answer

how to integrate XML Schema, XML gateway API in django

what is XML Gateway for POST API i am working in a web application to register a company online using XML gateway. but i don't have any idea to work with XML, i have a link contains of XSD or XML schemas, here is the link. i dont have any idea how…
azhar
  • 351
  • 3
  • 13
0
votes
1 answer

xsd requires different elements based on xml message content

I have 2 xml messages that are nearly similar but do have some dedicated elements. now I want to combine these to messages and create a "flexible" xml schema for it so I can validate it before processing. The idea is to have a common structure where…
martijn
  • 485
  • 2
  • 9
0
votes
1 answer

Database error while loading UTF-8 Encoded XML Data in Java

I am looking at brainstorming my problem here, not sure if this will trigger loads of shut down or not! Simplified: I have a system that reads an XML file and loads it into a database. The XML has a schema with the following:
Mega
  • 1,304
  • 5
  • 22
  • 37
0
votes
1 answer

Unique Element only in Order Indicator

Is there a way to make elements unique in same sequence (choice, all) but not on the whole document. For example this should work (Both John and Jane have Francis as middlename):
Mirra
  • 13
  • 3
0
votes
2 answers

Apache XMLSchema core XSD/XML parser shows the root element as parent for all children instead of its immediate parent

I am trying to parse the XSD using Apache XMLSchema Core. I am able to parse the file and store the Parent and its Child Element information within the HashMap. Each Child element is stored in the type XmlSchemaElement which also consists of the…
BATMAN_2008
  • 2,788
  • 3
  • 31
  • 98
0
votes
1 answer

How can I import/export from XML Persistence Format files?

I have some XML files which look like that:
Noisy88
  • 181
  • 1
  • 14
0
votes
1 answer

how to change path which has been set for XML schema validation

I've a bunch of XML failed according to XSD format set by the developers,i'm working in Notepad++ for validating the schemas provided by our organization, I've downloaded the xml tool plugin, integrated it with notepad++, Now when i'm validating…
user14225578
0
votes
1 answer

XSD data type of child element depending on parent element's attribute

I have some reports which look like this: 25 25
telegnom
  • 3
  • 3