Questions tagged [xsd]

XSD generally refers to a document written in the W3C XML Schema format, containing a description of a particular type of XML document.

xsd
Filter by
Sorted by
Tagged with
0 votes
2 answers
271 views

How to parametrize type in XSD?

I have a type named AdapterInputDataType that defines a format of some kind of input data: <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://companyname.org/...
vect's user avatar
  • 665
0 votes
2 answers
238 views

Can I validate "combinations" with XSD's?

In the following scenario: <apples> <isred>1</isred> <color>red</color> </apples> is there a way to create a restriction on the validation of the isred ...
Scott Baker's user avatar
  • 10.3k
0 votes
1 answer
497 views

Is it preferred to define a separate plural complexType for multiple singular elements

Is there any established standard for inlining trivial plural complexTypes vs. defining them separately? In detail: When defining some XML schemas I frequently encounter cases where I want one ...
Joshua Honig's user avatar
0 votes
2 answers
635 views

Parsing nested vs flat XML element using Java in generic way

Hi I had written a generic code in Java that parses XML input file without knowing its structure and outputs value in comma separated value. So lets say I have following in my XML document: <...
user1188611's user avatar
0 votes
2 answers
271 views

Create a web service, JPA entities and DB tables starting with XSDs

I'm working on a contract-first integration where I design the XSD&WSDL files first to provide to the customers to call a specific web service hosted on our servers. I also need to save the ...
gtopcu's user avatar
  • 253
0 votes
2 answers
235 views

How to read serialized data into a set of entity classes?

I've been assigned a task to import reference data from a database into a set of entity classes. Here's an example of one of the simpler entity classes: public class CountryList { public ...
Steve Chambers's user avatar
0 votes
2 answers
128 views

Create XSD for class structure

I would like to describe this class structure by XSD but I couldnt find any solution: public class A { string property { get; } B[] property2 { get; }//occurs 0 to unbound } public class B { ...
Simon's user avatar
  • 3,255
0 votes
1 answer
177 views

Imported schema & namespaces

What is the difference between (focus on prefixes h:, c:, a: and default): <?xml version="1.0" encoding="UTF-8"?> <xmlBoo xmlns="http://www.example.org/boo" xmlns:c="http://www....
sasynkamil's user avatar
0 votes
2 answers
59 views

Validating linkages between two XML documents

I'm pretty new to the nuts and bolts of building and validating XML documents, so I hope that I'm asking a trivial question. I've got a hierarchy of topics and sub-topics described in a document: &...
Dr Joe's user avatar
  • 718
0 votes
1 answer
2k views

Create different element in XSD

I have a XSD modified to add new item without having to create a new XSD. Currently I have a single element in this case is "tire". I created an element of type "tire". <xs:element name="tire" ...
A. M. Mérida's user avatar
0 votes
2 answers
2k views

Regex Number Range multiple ranges

I'm not very good at regular expressions, can someone help me with a regex with these specifications: Any integer between 0-365 OR 888
Michael Black's user avatar
0 votes
1 answer
2k views

Error adding schema to XmlSchemaSet

I am trying to add an xsd into an XmlSchemaSet but get the following error "Data at the root level is invalid. Line 1, position 1." XmlSchemaSet schemas = new XmlSchemaSet(); schemas.Add("", ...
DavidB's user avatar
  • 2,576
0 votes
2 answers
116 views

Treat special symbols as text during xsd validation

I have multiple XML files which I'd like to validate using XSD. Problem is that somebody designed tags like this: <name> Teststring <120> test <25> </name> I want the tags &...
DropDropped's user avatar
  • 1,263
0 votes
1 answer
114 views

XSD: define 2 elements with the same name but exact definition of attributes

Is there a way to define several attributes with fixed values and subelements for 2 elements with the same name? <Root> <element attributeA="1" attributeB="2"> <...
Christian Kelly's user avatar
0 votes
2 answers
470 views

XSD File Has a Password

I have searched everywhere for an answer to this but cannot seem to find one. I am trying to validate an XML file against an XSD file. I have so far written this. $x_validate = new DOMDocument(); $...
Brad Bird's user avatar
  • 737
0 votes
1 answer
2k views

XML Schema for variable element type

I have an XML element for a User Interface tool which looks like this: <Layout Type="{type}"...> If Type is "Stack" then the element looks like this: <Layout Type="Stack" Orientation="...
Julian Gold's user avatar
  • 1,286
0 votes
1 answer
3k views

xml schema validation error with minOccurs and maxOccurs attributes

I'm new to xml schemas and doing an assignment, and I've run into a problem. I am using th tutorial from w3schools.com and a validator located at http://www.validome.org/grammar/validate/ Below is the ...
Ernest Tambie's user avatar
0 votes
1 answer
129 views

How to convert a docbook from version 4.3 to 5 [closed]

Is there an automated way (or with minimal manual corrections) of converting docbook 4.3 books to the latest DocBook 5?
Paul's user avatar
  • 2,494
0 votes
1 answer
3k views

jaxb xjc creating List< Objects > instead of List< String >

I have an xsd like this - <xs:element name="teachers" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="teacher" type="xs:string" minOccurs=...
keerthi's user avatar
  • 33
0 votes
1 answer
149 views

Remove extra part in remoteClientAddress string in .xslt in MULE server 3.3.0 CE?

In my configuration.xml in MULE server 3.3.0 CE, I pass MULE_REMOTE_CLIENT_ADDRESS to .xslt file, below I copied my codes : <logger message="#[message.inboundProperties['...
brelian's user avatar
  • 403
0 votes
1 answer
1k views

get XML-Schema Restrictions with XPath

I´m trying to get all restrictions (minOccurs, maxOccurs, totalDigits, maxLength etc.) for elements, simpleTypes and complexTypes in an XML schema file. Since these restrictions are in child elements, ...
whocares81's user avatar
0 votes
1 answer
823 views

if -else condition in .xslt file in MULE

In my configuration.xml in MULE server 3.3.0 I pass MULE_REMOTE_CLIENT_ADDRESS to .xslt file, below I copied my codes : <logger message="#[message.inboundProperties['MULE_REMOTE_CLIENT_ADDRESS'...
brelian's user avatar
  • 403
0 votes
2 answers
744 views

schema-element() for SequenceType on xsl:variable with literal result element

I'm trying to understand how schema-element() works when used as a SequenceType with literal result elements. This is my stylesheet <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/...
nine9ths's user avatar
  • 795
0 votes
1 answer
8k views

How to generate documentation from XML documents? [closed]

I have been given a set of XML documents from a company that is meant to include the "documentation" of the XML schema. There are no XSDs provided. How can I generate documentation (eg. HTML or CHM) ...
CJ7's user avatar
  • 23k
0 votes
1 answer
81 views

xs:unique how do I get it to work

Hey I would like to force an attribute to be unique in my XML document. I am just beginning XML. I would like to make each person have a unique id. I have looked at xs:unique but can't quite figure ...
Vesprawn's user avatar
0 votes
2 answers
168 views

Issue During creating XSL file from XML

I have a table structure like this: id name parent_id 1 root_category Null 2 Appare 1 3 Accessories 1 4 Shirt 2 5 Pants 2 6 hand Bags 3 7 jewelry 3 from this table I have created a XML file ...
M.I.T.'s user avatar
  • 1,040
0 votes
1 answer
319 views

Validate compatibility of two XML schemas

Is there a .NET call to validate that one XML schema is backwards compatible with another?
J D's user avatar
  • 48.4k
0 votes
3 answers
85 views

Why does an optional element that has the same value as the default in the schema not show up in a transaction?

I use various xml transactions for request and then response transactions. The response transaction echoes the request transaction and then provides any "hit" information. I've noticed that when I ...
jmac's user avatar
  • 255
0 votes
2 answers
492 views

xmllint validation succeeds on invalid input

Why does xmllint not report validation failure for the following xsd and xml ? t.xsd <?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="...
user511274's user avatar
0 votes
1 answer
318 views

Prevent the same repeated n times digit in XSD Schema validation

The overall goal is to prevent the same repeated digit in the US telephone numbers. See the following sample data: 0000000000 - not legit 7777777777 - not legit 9549867899 - legit 3051234567 - legit ...
Yitzhak Khabinsky's user avatar
0 votes
1 answer
57 views

what will happen if an attribute is present in xml but not in xsd

what will happen if an attribute is present in xml but not in xsd If the above is possible please give some example
user1523295's user avatar
0 votes
1 answer
2k views

XSD validation error - xml namespace issues

I'm running a simple web service and I have a problem constructing and validating a response. This issue relates to namespaces. In my WSDL I have: <wsdl:definitions targetNamespace="http://me....
Ya.'s user avatar
  • 2,182
0 votes
1 answer
318 views

Update SQL Database Definition with Local XSD

I'm trying to retrieve an XSD definition of the tables and their datatypes, key-constraints from a SQL server instance and compare it to a local copy, to automatically generate SQL commands to update ...
Ccorock's user avatar
  • 892
0 votes
2 answers
288 views

Validate against DocBook schema in OS X on the command-line

What's the simplest way to validate XML files against the DocBook 5 schema from the command-line? In particular, I'm talking about DocBook documents that are split up across several files and ...
Lorin Hochstein's user avatar
0 votes
1 answer
72 views

A schema which allows elements to be in any order but with no duplicates?

I'm trying to write an XSD schema in which some elements can appear in any order - but there can be no duplicates. So this is valid: <parent> <my-element-A>1</my-element-A> ...
Richard JP Le Guen's user avatar
0 votes
1 answer
530 views

Difference B/W MS XML Schema vs XSD Schema

I have been dwindling around a while but could not find any tutorials or resources about an XML Schema provided by Microsoft in this link. It looks like: <Schema xmlns="urn:schemas-microsoft-com:...
Ankesh's user avatar
  • 4,865
0 votes
2 answers
2k views

About XSD Element is invalid ( XML Schema)

I have a question about XSD formatting. For examples , I have a XML document <?xml version="1.0" encoding="utf-8"?> <feed xmlns:media="http://search.yahoo.com/mrss/"> <entry> ...
BULLA's user avatar
  • 1,020
0 votes
1 answer
242 views

Error while XML validation against the XSD

I have written following code for validation in java, but it always return true. Even if I modify XML and make not compatible to XSD, still it return true. Please take a look. public static boolean ...
user900721's user avatar
  • 1,427
0 votes
2 answers
2k views

Taking more time to load the spring-*.xsd files from classpath with no internet

Initially i had my header for appcontext.xml as below. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www....
raga's user avatar
  • 1,613
0 votes
1 answer
815 views

Convert XDocument to xsd file through code [duplicate]

Possible Duplicate: How to create XSD file programmatically in C#? I have an XDocument object and I want to convert it to a xsd file through code How am I supposed to do that? My project looks ...
Hodaya Shalom's user avatar
0 votes
1 answer
677 views

attributeGroup in xsd and its representation in xml

Given this XSD from this document <xs:element name="jdbc-user-service" substitutionGroup="security:any-user-service"> <xs:annotation> .. etc </xs:annotation> <xs:...
Isaac's user avatar
  • 2,721
0 votes
1 answer
258 views

Java XSD code generation issue

I currently have an XSD that looks something like this, <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> <...
user avatar
0 votes
1 answer
1k views

How to show table relationships in xml schema derived from tsql query?

I found this tsql query that shows the xml schema of a table and it works very well. SELECT * FROM TableA FOR XML AUTO, XMLSCHEMA I am now attempting to show the relationship between tables via this ...
Bill Blankenship's user avatar
0 votes
1 answer
1k views

s4s-elt-invalid-content.1 in XML Validation

I am newbie to XML. I am validating one XML/XSD file. But Eclipse is throwing below validation error s4s-elt-invalid-content.1 Here's the code where it's having issues in XSD. <complexType ...
RaceBase's user avatar
  • 18.6k
0 votes
1 answer
2k views

jaxb how to sort elements by attribute?

f.e. I have next xml scheme: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com" xmlns="...
denys's user avatar
  • 2,502
0 votes
1 answer
184 views

Skip XML content while doing regex search and replace

I have a xml string as follows <root> <A id="1">This is an example</A> <B id="2"> <C id="3">this is tag c</C> </B> <D id="4"&...
Hulk's user avatar
  • 215
0 votes
1 answer
7k views

The QName value '{http://schemas.xmlsoap.org/soap/encoding/}Array' does not resolve to a(n) simple type definition

I'm an XML neophyte having some weird issues with parsing a schema. Here's a minimal example you can run: #! /usr/bin/env python from lxml import etree from StringIO import StringIO XML = StringIO(''...
BrianTheLion's user avatar
  • 2,618
0 votes
2 answers
2k views

XSLT loop over a set of files in the directory?

I have a situation where I have a directory full of xsd files that need conversion done to them generate a output file for each of them. I have my stylesheet operating on a single document fine, but I'...
mescaning's user avatar
0 votes
1 answer
706 views

creating 2 different types for same root element

I want to create one schema file for 2 different xml's (I can split it into 2 schemas but since the root element is same, I want to keep it in one file). now I have 2 different XML's. <...
Em Ae's user avatar
  • 8,450
0 votes
3 answers
193 views

XSD - validation

My requirement is like, consider the following sample xml <user key="username" value="Test"/> <user key="age" value="27"/> <user key="email" value="[email protected]"/> In this case all ...
sudhi's user avatar
  • 1

1
178 179
180
181 182
285