Questions tagged [xsd-validation]

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

1640 questions
0
votes
1 answer

Conditional on value in xsd

is there any way to add conditions on a tag value? For example, my xml looks like this: DAY Sunday
user3146161
0
votes
1 answer

XML attribute naming collision resolution

The XML specification says that unqualified namespaces are in no namespace. The semantics in the spec are debatable but all XML toolsets have been authored to work this way. See: XML Namespaces and Unprefixed Attributes It's a concept that my…
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266
0
votes
1 answer

XML Validation against XSD Fails - minOccurs Ignored apparently

I am getting an error when i validate my XML against the XSD and I Cannot figure out the reason. "The Error is that an element is not allowed under another element as other elements are expected at the location." The error snapshot is at…
Guddu
  • 1,588
  • 4
  • 25
  • 53
0
votes
2 answers

Xsd, element not abled to be resolved in a namespace

In a xsd, I include and import some element. Imported one is not resolved, I get this error: Error: src-resolve: Cannot resolve the name 'crq1:CoverageRequest' to a(n) 'type definition' component. OfferRequest.xsd
user1761239
  • 33
  • 1
  • 4
0
votes
1 answer

type definition of element {element} is not validly derived from that of its substitution group affiliation {element}

I have been dealing with a problem that although seems to be relatively simple, been taking a lot of my time with no success. I am creating a profile of Geographic Markup Language (GML), similar to CityGML. However, I keep getting the error "type…
0
votes
1 answer

BizTalk BEC2004 Error while Validating Instance using a XML Document

I am using BizTalk for the first time. I created a simple schema and simple XML document and trying to Validate the Instance. I am getting BEC2004 Error. The Schema has The Employee Record with Name and ID attributes.
trx
  • 2,077
  • 9
  • 48
  • 97
0
votes
2 answers

Concatenating string with exception message

I am trying to catch an exception when my XSD is invalid and just display a message on the console detailing to the user what went wrong. However the message that is displayed on the console is not as I expected. try { // doing stuff…
Dan Smith
  • 280
  • 3
  • 13
0
votes
1 answer

XSD schema validation constraints

There is a xml structure as follows Is it possible in XSD to block "dataRef" element referencing it's parent "data/dataRef" attribute value (basically a child can't match parents value constraint). Is it possible to make two way relationships…
Imesh Chandrasiri
  • 5,558
  • 15
  • 60
  • 103
0
votes
1 answer

Exclusion of optional attributes makes gml invalid against xsd schema

I have xsd Schema, and gml file according to that schema. When all attributes have values (optional and required) makes gml file valid against schema. But when I intentionally delete few optional attributes on some elements, validator says that gml…
Aleksandar
  • 1,163
  • 22
  • 41
0
votes
1 answer

Generating and Validating an XML Document in Multiple Languages

I have written an application that takes a proprietary file format and converts it to XML. I would like to localize that XML file based on culture information by translating element and attribute names. I can see how to create the XML document using…
John Donnelly
  • 875
  • 1
  • 10
  • 29
0
votes
1 answer

XML file even when it violates XSD

I created the following schema to validate my xml document:
spike
  • 19
  • 1
  • 6
0
votes
1 answer

XSD for Repeating Elements With different Child

Hi I have an xml that looks like, I need…
SMA_JAVA
  • 471
  • 4
  • 9
  • 18
0
votes
1 answer

With an xs:any element can I define the attributes of the any elements?

I want to be able to allow the following in my XSD but am stumped. I understand that I could use xs:any in a structure like this but this does not allow me define attributes for the elements that occur.
Dan Smith
  • 280
  • 3
  • 13
0
votes
1 answer

How to validate xs:unsignedInt with allow Pattern 0,1 and empty value in xsd?

I need to validate the following element:- Validation required:- 1. Allow 1,0 [Pattern] 2. Allow Empty value. I try with following code:-
Gurunathan
  • 97
  • 4
  • 19
0
votes
1 answer

PayloadValidatingInterceptor from Spring-WS allows elemens not included in XSD

I'm walking through the following tutorial: http://jeromebulanadi.wordpress.com/2010/02/25/basic-spring-web-service-tutorial-from-contract-to-security/ and I faced a problem. I don't know whether it's an expected outcome or some kind of a bug. It's…
1 2 3
99
100