the procedure of checking an XML document against some kind of schema that describes rules that this type of document must conform to. This can often be done programmatically in eg. Java or C# and the schemas are often of the type XSD.

learn more… | top users | synonyms

3
votes
1answer
208 views

Reference an XSD file from different XMLs sitting in different project modules?

I have an XSD file that is referenced in three different XML files in different project modules using: <item-groups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
2
votes
1answer
301 views

Is it possible to enable schema validation for inbound or outbound xml only in Apache CXF 2.5.2?

I have created a web service endpoint using Apache CXF 2.5.2, but I am having some issues with schema validation and MTOM interacting. If I enable MTOM and schema validation I must use the ...
2
votes
1answer
761 views

why can't I validate this xml against this xsd?

I can't seem to validate http://pastebin.com/jbFzRuUD against http://pastebin.com/cgvTdVWA Here are the errors I get : /schema-check xml.xml xsd.xsd Error at file "/stuff/xml.xml", line 3, ...
2
votes
1answer
401 views

XSD Validation in Java/or Groovy

I am receiving an error java.lang.StackOverflowError when trying to validate against a couple of schemas. Other Schema Validation tools such as XML Spy and MS VS XSD.exe validate the schemas. Is ...
2
votes
1answer
191 views

how to find in xsd, whether the particular tag is available in xml or not?

My xml file is, <?xml version="1.0"?> <type xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" ...
1
vote
1answer
75 views

Adding uniqueness restriction to xsd:attributeGroup's attribute

Adding uniqueness restriction to xsd:attributeGroup's attribute. Current myAttr-group looks like : <xsd:attributeGroup name="myAttr"> <xsd:attribute name="**name**" ...
1
vote
1answer
73 views

How can I find out which XSD is slow to load in Eclipse's XML validator

I'm working on a web project, but that project takes a long time to build in eclipse. The same project build very fast using the maven command line. The build steps that seem to take the longest time ...
1
vote
1answer
200 views

LibXML2 date validation errors with regular expression

I have a problem while validating XML against schema that uses regular expression. I'm using LibXML. Actually the libXML is used by PHP, but same problem, of course, occurs in the console. XML should ...
1
vote
1answer
73 views

Generate XML files for testing from XSD schema

I have a complex collection of XSD schema that I have already used to validate some existing XML examples, using Python lxml. Now I'm trying to generate additional XML examples from the existing XSD ...
1
vote
1answer
819 views

XML Schema Validation in Android - getting “java.lang.ExceptionInInitializerError”

I've searched and I've searched, but I have no idea what's wrong. I know standard Android libraries don't have support for Schema or xml validation, and you can't use Apache Xerces out of the box, so ...
1
vote
1answer
175 views

Sybase ASE - xmlvalidate with xml schema

I receive inputs to a procedure as xml and I've prepared the xml schema and would like to validate the input with the schema and throw an error if the input doesn't comply. I am trying to use ...
1
vote
1answer
976 views

Different results of XMLLint and Xerces on XSD Schema validation?

Context: I'm trying to find a way to validate XSD and XML against XSD that is automatable for integration into a software build-process. The input is files, and for the output an exit code or reliably ...
1
vote
1answer
1k views

validate XML in all opened documents in Notepad++

I am using the xml-tools plugin in notepad++ to run validation on .xml files using an .xsd schema file. But I have hundreds of files to validate, and will likely have hundreds more. I really like ...
1
vote
1answer
388 views

WebLogic does not validate minOccurs=“1” in webservices

My WebService is deployed on WebLogic 10.3.3. WSDL/XSD describes input parameter number as mandatory: <xs:element minOccurs="1" maxOccurs="1" name="number" type="xs:int"/> MinOccurs="1" means ...
2
votes
0answers
87 views

Custom XML Validation logic in .NET (ignore undefined elements)

I have the following problem: I have 2 XML documents, both generated by different source systems and while both will, for example, have elements ABC, they also will have unremovable elements generated ...
1
vote
0answers
39 views

Validating XML file with XML::Schematron::LibXSLT

I want to verify XML file using XML::Schematron::LibXSLT here is code i tried which uses .sch schemafile and XML file as argument use XML::Schematron::LibXSLT; my $schema_file = $ARGV[0]; my ...
1
vote
0answers
109 views

Getting Exception at console: Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired.

Actually, i Have deployed my web-application on tomcat and when i start the application i am getting the following exception at console: Warning: validation was turned on but an ...
1
vote
0answers
183 views

XmlDocument Validation not working

I have an XmlDocument that I build in memory. I have an XSD document stored in my database. I get a stream for that XSD document and try to validate XmlDocument. But the validation never works. It ...
1
vote
0answers
508 views

Add xmlns attribute & validate schema programmatically

I'm validating an XML document against a schema that might not include the xmlns:information within it. So, how do I flag such a document (or any node that doesn't have that schema information) as ...
1
vote
0answers
278 views

XML: Unable to validate “type” definition

I am trying to validate XML I generate from my script against an .xsd schema file with PHP 5.3.15 on OSX using DOMDocument::schemaValidate(), but it fails to validate type definition. I have tried ...
1
vote
0answers
252 views

WCF service returns Error:System.Xml.Schema.XmlSchemaValidationException:

My application is accessing a WCF service hosted at the server. When i try to call a Method with [WebInvoke] attribute the response returned is always "error". All other methods with [WebGet] ...
1
vote
0answers
667 views

Validating XBRL instance documents in .NET

I'm currently working with creation and validation of XBRL instance documents in C#, and I've run into some problems regarding the XBRL instance schema file: ...
0
votes
0answers
10 views

is it possible to validate json through xsd?

I am currently using a webservice which returns xml and json format. I know that there is an xsd available for xml validation. Is there a way I could validate my json too by converting this to xml ...
0
votes
0answers
14 views

How to check for unique attribute values using schema

I am new to XML Schema. I am giving all the details of my schema and XML. I have my XML schema as following, <xs:schema xmlns:xs ="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" ...
0
votes
0answers
33 views

Spring-ws validation of schema with multiple imports to same namespace

I have a number of required soap headers defined in XSDs that I am not allowed to change, as existing clients are already using these in production. In one of these schemas there are a number of ...
0
votes
0answers
23 views

XSD - how to specify element structure depending on its attribute value?

I have an XML which I validate by an XSD schema. inside the XML, I have the element . depending on value of stereotype attribute, I want to have different inner structure for the element; take ...
0
votes
0answers
61 views

How to do Schematron validation over different xml files attributes

I have one source1.xml file <?xml version="1.0" encoding="utf-8" ?> <list> <author id="a1">Alice</author> <author id="p1">Paul</author> <author ...
0
votes
0answers
11 views

Recognising when source XML tag is missing

I have some report designed in iReport and many XML files acting as a source for that report. Unfortunately some of them are missing tags that are needed in the report what results in NULL values in ...
0
votes
0answers
28 views

Locate main/resources xsd file in test/resources xml file

In my maven project, i have an xsd file located in src/main/resources which i want to access in my xml file located at src/test/resource src |-main |-resources |-foo.xsd |-test ...
0
votes
0answers
32 views

Error in validating XML

This is my XML. This is the error: I am trying to validate an inline schema basically. Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is ...
0
votes
0answers
26 views

How to disable DTD validation during Canonicalize?

I have read How do I turn off validation when parsing well-formed XML using DocumentBuilder.parse? and Make DocumentBuilder.parse ignore DTD references and I realised that I have to either create a ...
0
votes
0answers
85 views

XML validates against schema in online validators but not C# program

We're confused, we're tried the following: Xml validation using XSD schema but have issues. In least resort we have removed namespace from XSD to make things the simplest. The following XML and XSD ...
0
votes
0answers
46 views

Validate Xml with XSd without using XSD physical path

I am validating XML with XSD in C#. Following is the code var test = "C:/Temp/xmlconnector5.0.xsd"; var settings = new System.Xml.XmlReaderSettings(); settings.Schemas.Add(null, test); ...
0
votes
0answers
108 views

Validating xml document using xsd in c# isn't working.SchemaSet usage how can it be done

I need to validate a xml document by using xsd. I've read xml validation examples on msdn but mine doesn't work. İ have some code to this job private void ValidatingXML() { ...
0
votes
0answers
44 views

Swap XML elements using javax.xml.transform.Transformer

I have following xml portion <xsd:complexType name="xyz"> <xsd:annotation> <xsd:appinfo> <Base ...../> </xsd:appinfo> </xsd:annotation> <xsd:simpleContent> ...
0
votes
0answers
77 views

Custom Validation using WCF Service

The authentication schemes configured on the host ('Anonymous') do not allow those configured on the binding 'BasicHttpBinding' ('Negotiate'). Please ensure that the SecurityMode is set to Transport ...
0
votes
0answers
108 views

Validating XML and Displaying what failed

I am trying to validate an XML file and display any errors to the user. Simplified Example: XML: <MyApps> <MyApp> <Header> <Name>Name 1</Name> ...
0
votes
0answers
49 views

Two identical values in choices in Relax NG

I'm trying to validate my XML file using Relax NG. It seems that interleave restricts creation of two identical values in choices even if second choice is optional. Here is an example of my code: ...
0
votes
0answers
162 views

LibXml2 fail to pass W3C XML Conformance Test Suites?

With version LibXml2 2.9.1 (which is the latest at this time), you can encounter a few errors when you test LibXml2 against W3C conformance test suite. LibXml2 developers kindly provide us with code ...
0
votes
0answers
82 views

Schematron - Validation of xml with interdependent nodes

I am creating a schematron script for validating an xml against another Reference xml document. See the below samples : Reference XML Document: <BOOKS> <BOOK INDEX="1"> ...
0
votes
0answers
165 views

How to export Dataset or DB records into EDRM XML format using c-sharp

I'm developing WPF application, in that i want to export my DB records in EDRM XML format. How do i accomplish that.. Here is .xml report exported from my application <?xml version="1.0" ...
0
votes
0answers
126 views

cvc-complex-type.2.4.a: Invalid content found error on WSDL validation in Eclipse

I am facing a problem with a open source project that I am trying to use. The project is the CIPA e-Delivery, a project developed as part of the PEPPOL project, an european pilot project for ...
0
votes
0answers
107 views

which XSD's to use for “correct” Java XML validation

I am trying to validate an XML document that uses multiple XSD files. (In my case it concerns a XBRL file). I am not sure which XSD files I need to use to ensure that "all" of the XML file is ...
0
votes
0answers
58 views

How to validate xml against xsd in Windows Phone?

Is it possible to validate xml against xsd in windows phone?? If so, how? Are there any frameworks/APIs for that? I am not able to do that with System.Xml.Schema.XmlSchemaSet There is no Add() ...
0
votes
0answers
879 views

SOAP 1.1 encodingStyle attribute validation error

Looking at the SOAP 1.1 specification (http://www.w3.org/TR/2000/NOTE-SOAP-20000508/) and the corresponding XSD (http://schemas.xmlsoap.org/soap/envelope/), I can see a mismatch regarding ...
0
votes
0answers
61 views

How to: create a complexType with attributes, a base type, and child element?

I would like to be able to validate xml element "trace" in 3 different cases, which are presented below. I can get the restrictions and attributes to validate, and I can get the attributes and sub ...
0
votes
0answers
687 views

XML Schema Validation using java code

I am using Java code to validate an xml against Schemas(XSDs.).But there are multiple Schemas included in one other using . I have to load the schemas from the classpath. I load the main Schema as ...
0
votes
0answers
67 views

Nested XML file validation

I have a xml data source that have multiple xml's nested. We will load this xml to our oracle 11 g database, using informatica fro etl process. What is the best way to validate TRT against the SRC. We ...
0
votes
0answers
95 views

which better for XSD validation

I have a module in a system i'm currently working on where xsd validation for XML messages is done inside SQL server using XML api in T-SQL. so i want to know which better to do this task inside SQL ...
0
votes
0answers
136 views

Which is the best methode for xml validation in java?

I want to create a validator for xml using xsd schema in java language. When I searched in the internet I found 3 meothods using javax.xml.validator, using jaxp parser, using sax parser. Can you ...