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
3
votes
1 answer

How to parse XSD and read all the complex elements and its child elements using the Java and XmlSchema Core

I am using the Apache XmlSchema Core library to parse the XSD file and get all the elements and its children type (datatype, maxOccurs, etc). I am following the documentation Apache XML SCHEMA CORE and trying to do. But after navigating to a certain…
BATMAN_2008
  • 2,788
  • 3
  • 31
  • 98
2
votes
1 answer

Duration comparison in prolog

I made an OWL ontology with some xsd:duration datatype. Then I converted it into prolog facts using Thea. I have the following xsd:duration structure PnYnMnDTnHnMnS. How can I write prolog rules to compare two durations, in order to establish which…
2
votes
0 answers

How to programmatically edit an xml schema file within eclipse plugin

I need to edit a xml-schema file (.xsd) within an eclipse plugin project (eclipse version is 4.2.2). Right now, I'm able to read the xsd IFile in my eclipse project using org.apache.xerces.xs.XSModel in a way like this: private XSModel…
2
votes
2 answers

Parsing XML files and validating against xsd schema

This is an example of XML output I need to parse and validate against the schema xsd files. some name
yudi
  • 103
  • 7
1
vote
1 answer

cvc-complex-type.2.4.d: Invalid content was found starting with element 'X'. No child element is expected at this point

cvc-complex-type.2.4.d: Invalid content was found starting with element wydane. No child element is expected at this point. I do not know what I could do to solve this problem. Someone have any idea? Below is a fragment of my XML Schema:
songo324
  • 11
  • 2
1
vote
1 answer

py xmlschema: element * at * is not an element of the schema

My simplified xsd/xml looks like this:
DonFuchs
  • 371
  • 2
  • 14
1
vote
1 answer

Multiple confusing XSD validation errors?

I tried to create a XML Schema for a dataset, but I got these errors: The "Extra content at the end of the document" error appeared when i tried to open the XML file. The "The markup in the document following the root element must be well-formed"…
1
vote
1 answer

Default XSD attribute use indicator values?

What are default values of indicators in XSD Schema when they aren't define directly? How many times (min and max) and what order in should (or can) I define attributes of foo in XML?
maskalev
  • 360
  • 3
  • 9
1
vote
0 answers

xmlschema library: What's the meaning of "position" in an output error?

I have a program which uses the xmlschema library to first validate an XML input document using an XSD document. When I run the program using a specific XML input, I get the error: "Reason: Unexpected child with tag 'x' at position 3. I'm wondering…
Prospero
  • 109
  • 1
  • 11
1
vote
1 answer

XML validation in Qt

How does one validate an XML document against an XML schema in Qt? There must be Qt facilities to do that, but I am unable to find them... I am using the latest Qt version (6.2.4).
user1387866
  • 2,834
  • 3
  • 22
  • 28
1
vote
0 answers

Explanation of XML and XSD schema/root element / namespace

I try to understand how xml and xsd files root element work. i read already a few articles via google, some articles on stackoverflow but still dont understand how the following works. here are some articles that i already read. targetNamespace and…
lexrex
  • 11
  • 4
1
vote
1 answer

How to change schemas in an XML document with c#

I have an XML-file that looks like this:
LÖNIN 2
Erik
  • 13
  • 3
1
vote
1 answer

Validating xml against xsd but getting org.xml.sax.SAXParseException

I am trying to validate XML against a XSD file in Java. This is my code: public static InputStream inputStreamFromClasspath(String path) { return Utils.class.getClassLoader().getResourceAsStream(path); } public static boolean…
Rumi
  • 61
  • 1
  • 9
1
vote
1 answer

How to best use an XSD file to store common definitions for multiple schemas

I have multiple XML Schemas that have common definitions. I would like to store those definitions in a common file we'll call it Common.xsd. I have the type guid referenced in my other schemas successfully already. I don't need, nor want a file type…
Hawkeye4040
  • 126
  • 10
1
vote
1 answer

Convert static XAML inline styles to external CSS style sheet

To start I am not familiar with XAML however I know XML/CSS exceptionally well. I've begun helping a friend add some style to their XAML application though very quickly noticed that all of their styling is inline which is a nightmare. Here is a good…
John
  • 1
  • 13
  • 98
  • 177
1
2 3 4