Questions tagged [xsd-validation]

XSD validations are used to validate the XML file against the stored schema.

1640 questions
0
votes
1 answer

XSD: Validate that only a single element in a group is present

Given the following xml structure:
Nathan
  • 503
  • 3
  • 10
0
votes
1 answer

Tag authentication-manager with optional provider bean

I have two spring profiles that are independent from each other, like below:
fashuser
  • 2,152
  • 3
  • 29
  • 51
0
votes
1 answer

Error: Element must have no character or element information item [children], because the type's content type is empty

I can't seem to grasp on what this online validator is telling me: cvc-complex-type.2.1: Element 'characterPower' must have no character or element information item [children], because the type's content type is empty. (I get the the same error…
Tim Bob
  • 15
  • 1
  • 5
0
votes
0 answers

PHP and XSD Regular expression for currency and location names

I am trying to find a suitable regular expression that allows number, digits, spaces and other characters that can be used in names such as . ' -_. I need to implement an expression as a PHP preg_match and an XSD pattern. Currently I have the…
HarveyEL
  • 3
  • 6
0
votes
1 answer

xml data model for a health database?

As part of my university assignment I have to create a xml data model for electronic health monitoring and record keeping, now I understand the concept of XML and the basic structures, however I am a little confused regarding the best way to…
0
votes
1 answer

XSD 1.1 Check if an attribute exists in another element

I have 2 main sections in my XML file Sequence and StateRelations. The Sequence section is defined as. The Transition element should be unqiue based on its 4 properties as defined below.
Behroz Sikander
  • 3,885
  • 3
  • 22
  • 36
0
votes
1 answer

How to enumerate list of Xsd constraining facets?

I am working on improving user friendliness of Xsd validation error messages, and I need to enumerate all possible constraint facets to be able to further perform search of specific errors within the ValidationEventArgs. Here is the link for the…
eYe
  • 1,695
  • 2
  • 29
  • 54
0
votes
1 answer

Error: Invalid content was found starting with element

I am having trouble getting my files to validate. Here are the errors that I am getting. 4: 14 cvc-complex-type.2.4.a: Invalid content was found starting with element 'AirportList'. One of '{"":Airport}' is expected. 47: 15 XML document…
Brad
  • 157
  • 1
  • 9
0
votes
1 answer

SSIS - XML Validation Error - "Expected schema root"

I have an XML Task within an SSIS package that is giving me the following error when run: Error: 0xC002F304 at XML Task, XML Task: An error occurred with the following error message: "Expected schema root. Make sure the root element is
chazbot7
  • 598
  • 3
  • 12
  • 34
0
votes
0 answers

XSD : How to validate specific element with minOccurs one & all elements can be in any sequence & number of times

I have requirement as specific element should be present at least one time & all elements can be in any sequence. For ex:
vaibhavn
  • 29
  • 7
0
votes
1 answer

How to write XSD Or conduction

I have a requirement to write or conduction in XSD. For an example memberName can be companyName or firstName or middleName or lastName. Any one Name should exist in xml document/Like any one Name is mandatory in XML.
user4485029
0
votes
1 answer

Why XML namespace is not unwanted in this XML SOAP request?

I don't understand why the following XML (built from a WSDL request) is invalid:
Fylhan
  • 677
  • 6
  • 10
0
votes
1 answer

How to write XSD for optional elements?

Input: is 2
Sammy
  • 121
  • 4
  • 12
0
votes
1 answer

Validation error xsd schema with nested complex types

The error that occur during validation is: The element 'Details' in namespace '<-namespace->' has incomplete content. List of possible elements expected: 'PersonAddress' in namespace '<-namespace->'. The schema is as follows (large parts removed,…
J.Olsson
  • 815
  • 3
  • 13
  • 29
0
votes
1 answer

is there a difference between and in XML?

In an XML file, I need to send the value of an element as "nil", does having the tag as the following and one and the same ?
trilawney
  • 1,786
  • 6
  • 28
  • 36