Questions tagged [xsd-validation]

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

1640 questions
0
votes
1 answer
0
votes
1 answer

Identify duplicate tags in Xml using XQuery/schema

I have an Xml fragment where I need to verify that there is only a single ocurrence of each node on the first level (0-based). An example of bad Xml is this: My first book 101
Jesper Lund Stocholm
  • 1,973
  • 2
  • 27
  • 49
0
votes
1 answer

XSD validation issue when doing xmlbulkload into sql server 2008

I'm using vbscript to perform an XMLBulkLoad into SQL Server 2008. My upload is triggered by the following: objBL.execute "schedules.xsd", "scheduletest.xml" This is triggering correctly. However, when I try to upload with my schema as is, I get…
BishNaboB
  • 1,047
  • 1
  • 12
  • 25
0
votes
2 answers

xml namespace issues when validating a XML schema

my xml file starts like so: For simplicty: the XSD starts off like this:
Toofgib
  • 15
  • 4
0
votes
2 answers

Best or all Methods to validating an XML against XSD schema using C#

Which method exist in C# to validate an XML against XSD Schema using C# ? One of this is using System.Xml, using System.Linq. Which other validate methods exist? I look for the methods to derive examine the methods and use.
0
votes
2 answers

xsd validation failing for regular expression

I am using the below simpleType for allowing only 5 type of words. This is working fine. but the problem is, it is failing, if i appended only one character with upper case at the end of the string. Please help me regarding this.
Ramkumar
  • 154
  • 5
  • 11
0
votes
1 answer

Difficulty creating XSD Validator

I'm trying to create a XSD to validate this kind of XML: 123 PNI 20150101101010 orçamento.xlsx orçamento
0
votes
0 answers

s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'

I am getting the below exception when validating unsignedInt in xsd. I am not able to validate the string 'abce' with unsignedInt type. Please help me regarding this.
Ramkumar
  • 154
  • 5
  • 11
0
votes
2 answers

How to write a XSD to validate random element names?

I have written an application which receives many variation of XML requests. In our business we have to validate XMLs against XSD at the beginning of any request. The problem: As I said above I have to validate them at the beginning and those XMLs…
Ali. B
  • 65
  • 9
0
votes
1 answer

How can I validate XML against an XSD with distinct imports and namespaces?

I am trying to validate a few XML files and I'm failing due to various issues with the XSD definition and the namespaces... This is public info, so no problem sharing data: the main XSD is at http://bioinformatics.ua.pt/euadr/euadr_types.xsd and it…
Pedro Lopes
  • 165
  • 3
0
votes
0 answers

Xerces c expecting namespace element

I'm trying to use xerces-c to parse an xml string. I've used xsd code synthesis to generate the cxx and hxx files from the xsd that corresponds to the string. I've been trying to get it to ignore the namespace that is attributed with the xsd. In the…
georges
  • 175
  • 4
  • 17
0
votes
1 answer

Validate XML element appearance for alteast 2 times using XMLToJAXB transformer in Mule and validate to must have value

I have POJO classes (created by xjc with a XSD file) that is required for converting XML(with an element(UserField) that should be present alteast 2 times) into JAXB object in Mule. But, if I am giving XML input with presence of UserField less than…
Sanni
  • 57
  • 1
  • 8
0
votes
1 answer

Reuse a simpleType in many attributes

I am trying to reuse the serverType in one of the attributes but it seems to not validate or use it at all. The XSD file has no errors. I am not sure if I need to insert the in a specific place inside the file. I…
Max
  • 1,289
  • 3
  • 26
  • 50
0
votes
1 answer

XML schema & xml document not validating

I was wondering if you could point out whats wrong with my schema? I have checked that my XML document is well formed using - http://www.utilities-online.info/xsdvalidation/#.VQkt1BCUfA4 - It's well formed. But when I check my schema against my xml…
James111
  • 15,378
  • 15
  • 78
  • 121
0
votes
1 answer

how to write xsd for following XML requirement

I have the following xml for which I need XSD. 100 2010 ABC PQR in the above…