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
1 answer
403 views

Schematron Assert Rule Fails while setting context

I am attempting to use NMatrix's Schematron to validate XML in C#. If I leave the "f" namespace out of the namespace-manager (nsManager), I get the exception: Undeclared namespace prefix - f when ...
jlo-gmail's user avatar
  • 4,788
2 votes
1 answer
5k views

XSD to UML command line tool

I was wondering, does anyone come across any command line tool (free in preference) for translating an xml schema (xsd) to UML diagram? The .xsd is used to represent classes, thus a UML class diagram ...
nikkatsa's user avatar
  • 1,801
0 votes
1 answer
137 views

Primary key in xsd not working

I have following XML <SourceDataSet xmlns="C:/Users/AGARWALN/Desktop/NidhiTest/SourceDataSet.xsd"> <SourceSystem> <SystemCode>XTRADER</SystemCode> </...
user3182464's user avatar
0 votes
1 answer
38 views

XML Validation > Showing new elements for specific enumeration value

I want to create a schema that enforces content validation across dependent elements. If the contents of the first element is "ApplicationY", then the next element must be visible and mandatory. <...
Cihan's user avatar
  • 91
2 votes
1 answer
489 views

How to create the binding file for changing complexType to simpleType

I had a field in XSD schema: <xs:element name="magicField"> <xs:simpleType> <xs:restriction base="xs:int"> <xs:totalDigits value="8"/> </xs:...
Gorgoth's user avatar
  • 121
0 votes
1 answer
151 views

How to create valid xml using xsd schema

I want to view the below defined xml schema into my expected xml. Can anyone help me what to write in XSD. Thanks in advance. XML SCHEMA: <xs:element name="Animal"> &...
user3348161's user avatar
1 vote
1 answer
526 views

How to parse optional fields from left to right with BizTalk flat file parser set to complex?

I am developing a schema for flat file disassembly in BizTalk 2013. However, I have a big problem with the schema, since the parsing result is rubbish. The flat file type I am parsing looks like this: ...
ingofreyer's user avatar
  • 1,116
2 votes
1 answer
3k views

XSD restriction for string value

I need to write a restriction for a string column, so that it will include 20 letters and 3 of the following : (. , -). How can this be done? Thank You.
Yevgeni Grinberg's user avatar
1 vote
1 answer
807 views

Making separate schema compilation work with JAXB 2.2

I am desperately trying to make seperate schema complilation work with JAXB 2.2 and the JAXB2 Maven Plugin 0.8.3. I have followed the official documentation but it does not reveal how an appropriate ...
Michael-O's user avatar
  • 18.3k
1 vote
1 answer
2k views

How to create single xml file combining multiple xsd schema files

I have multiple xsd schemas with me and I want to generate single xml file combining all the xsds. I have tried with visual studio but I can create separate xml files from separate xsds. I also tried ...
Koustav Roy's user avatar
0 votes
0 answers
153 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); settings....
user2739679's user avatar
4 votes
2 answers
7k views

How to get the minOccurs / maxOccurs values from the XSD in Java using JAXB?

My application is calling a webservice and I have generated the Java classes from the WSDL/XSDs with the maven-jaxb2-plugin. The webservice calls worked fine for a while but recently I had a problem ...
RayBenschi's user avatar
0 votes
2 answers
160 views

Mapping web form data to repeated XML elements

I have gone all over the web looking for an answer to this, and have not been able to find one anywhere. I'm trying to build a web form that uses XSLT to generate XML data. I'm basing it on other ...
Ray K.'s user avatar
  • 2,481
0 votes
1 answer
721 views

How to include MathML tags in an XSD based on Docbook tags?

I'm working on an XSD that is based on a subset of Docbook 5 tags. Here is a very small part of this XSD with a few tags just for illustrate de problem: <xs:schema xmlns:xs="http://www.w3.org/2001/...
AOP's user avatar
  • 13
3 votes
0 answers
385 views

.NET VisualStudio wsdl multiple xsd files, overlapping definitions

I'm writing an implementation for a mailing service and I'm having trouble with the code that VisualStudio autogenerates from the wsdl file. The API contains several versions of the same objects. The ...
MrTibs's user avatar
  • 161
0 votes
2 answers
3k views

XQuery: return to no namespace

Is it possible to return to no namespace by prefix? In other words when a default namespace is set in Xquery, how do I put an element in no namespace or how do I create an element without an namespace?...
Stefan K.'s user avatar
  • 7,751
0 votes
1 answer
270 views

Is it possible (or sane) to check if an octal number is in range with regular expression?

I have to check if the content of a given XML element representing an octal number is in the range 0-77776. Is it possible to obtain this result only with regular expression? I have tried in many ...
sblandin's user avatar
  • 934
2 votes
1 answer
2k views

JAXB - IllegalAnnotationExceptions

I have an XSD like this: <xs:element name="Measure"> <xs:complexType> <xs:sequence> <xs:element minOccurs="1" ref="Measure_Id"/> <xs:choice minOccurs="1" ...
Zany's user avatar
  • 318
2 votes
2 answers
816 views

XSD Walker - Traverse an XSD with a series of XML Tag openings and closings as input

Basically what I want is to create a state transition diagram representation of an XSD. It's not a simple state diagram; it should reflect compositors (All, Choice, Sequence), min and max occurrences, ...
Ram's user avatar
  • 1,034
0 votes
1 answer
143 views

Conditionally change the nillable property of a simple type

I'm trying to conditionally change an element from being nillable to non-nillable based on the value of 2 other elements in an XSD . Is this possible in XSD 1.1? I have 3 simple types of type xs:int :...
polydegmon's user avatar
0 votes
1 answer
286 views

How to Add XSD and XSI as an Attribute

I am pretty new to this and am now stumped. I need to add the xsd and xsi under an element but am unsure how to do this. I looked around on this sight but could not not find what I was looking for (...
user3175130's user avatar
2 votes
1 answer
4k views

Create Sql Database using xml schema and xml data file

How to create Database in Sql Server using xml schema and xml data file. I tried different things I cant solve the problem. I am using these files XML SCHEMA: http://www.drugbank.ca/docs/drugbank....
Ahmad Abbasi's user avatar
  • 1,776
0 votes
1 answer
514 views

Importing XSD defined with just <schema>, not <xsd:schema"

I am trying to import part of the GML geometry definition into a new schema file: http://schemas.opengis.net/gml/3.1.1/base/geometryBasic0d1d.xsd This is what my definition looks like: <schema ...
superstar's user avatar
0 votes
0 answers
39 views

XSD regroup schemas

I've the following schemated XSD : schema1.xsd <schema xmlns="D" targetNamespace="A"> <import namespace="B" schemaLocation="schema3.xsd"/> <import namespace="C" ...
Apaachee's user avatar
  • 900
2 votes
1 answer
3k views

How to generate XML in ORACLE 11g with reference to given XSD?

I am learning to generate XML in Oracle 11g PL/SQL language. I would like to generate XML depending on the data I get from the db tables, but at same time it should follow the structure and validate ...
user3325650's user avatar
6 votes
4 answers
4k views

Generating C# classes from FHIR schemas

I am attempting to generate c# classes from schemas provided by the FHIR project: http://hl7.org/implement/standards/fhir/ I have downloaded the schemas: http://hl7.org/documentcenter/public/standards/...
jlo-gmail's user avatar
  • 4,788
4 votes
3 answers
1k views

Creating a valid sitemap with custom attributes

I'm working on a website. My website has a sitemap.xml file. That file can be seen here. If you scroll down, you will see a url entry that includes some custom tags. Those tags are prefixed with ...
Chad Campbell's user avatar
2 votes
1 answer
350 views

Validation with JAXB

My problem is: check if an XML document is well-formed respect to its schema. In particular, I would like to be able to use a "validator" that returns NULL in case of any error (problems with ...
Zany's user avatar
  • 318
0 votes
0 answers
396 views

Web service client can not be created by jaxws:wsimport utility [binding.xsd]

I'm trying to consume a web service but I can't even start. I get an error as soon as I include the Web Service. I have researched and found similar errors but not this one. I hope you guys know a way ...
Victor's user avatar
  • 911
0 votes
1 answer
1k views

Error in SOAP request in PHP

I'm trying to send complex SOAP request in PHP. I think that problem might be in WSDL file which has defined namespace and schemaLocation for GSBSchema.xsd but nowhere is defined for ...
Cikson's user avatar
  • 108
1 vote
1 answer
6k views

Validating XML against XSD in soapui

I know this question has been asked here before but none of them are asking exactly what I am looking for. I want to know how we can validate a RESTful service response(application/xml) against an ...
Amrit's user avatar
  • 2,313
0 votes
1 answer
58 views

Inserting data into element of a generated class

I've generated a class by xsd.exe tool. Here is the relevant part of the schema: <xs:element minOccurs="0" name="propertyLine"> <xs:complexType> ...
ohadinho's user avatar
  • 7,024
1 vote
1 answer
588 views

XML xs::assert in complex type

I am trying to introduce conditional mandatory fields in my XML schema but I am getting an error that xs:assert isn't valid in context... any suggests to help please? Additional information: I am ...
Swatcat's user avatar
  • 31
1 vote
1 answer
2k views

Xsd Element SimpleType plus attributes

I'm not able figure out how to express the following with Xsd: an elment with a simpleType restriction (enumeration of values) and require an attribute on this element. For example: <myElement ...
kstubs's user avatar
  • 808
0 votes
1 answer
272 views

XML schema for ordered child elements with different names

I need to Deserialize an XML that contains the definition of a Profile/polygon of points and arcs. <Pt> <X>0.0</X> <Y>0.0</Y> </Pt> <Arc> <X&...
Jared Bolin's user avatar
1 vote
1 answer
439 views

How to restrict the XSD of SAML 2.0 Authentication Context

I have been trying to find a solution to my problem is the last 10 days, and I found nothing. So, I am trying to restrict the Authentication Context XML Schema Definition of SAML 2.0. The XSD document ...
marloncdomenech's user avatar
0 votes
1 answer
3k views

Using ref in XML schema

I am trying to create a schema that has rows reference columns via the columns id attribute. The following xml and xsd will not validate because the column cannot be found How do I create the schema ...
user3319681's user avatar
0 votes
1 answer
3k views

"This element is not expected" while using 'any' with xhtml namespace

I have some issues with XML Schema. I need to put some HTML code in my XML file and I found that xs:any would help. But xmllint return me errors like this: example.xml:4: element h1: Schemas validity ...
Paweł Golonko's user avatar
0 votes
1 answer
318 views

Re-arranging XSD xs:sequence using xslt to convert to another xsd

I have something like this: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="PRO"> <xs:sequence&...
Biju's user avatar
  • 17
1 vote
1 answer
53 views

Generating parent tag for a xs:sequence elements

In my xsd, I have something like this: <xs:complexType name="Disk"> <xs:attribute name="index" type="xs:int"></xs:attribute> <xs:attribute name="providerId" ...
Piyush-Ask Any Difference's user avatar
0 votes
2 answers
757 views

validate xml with xsd schema with attribute xmlns

I have a problem when you go to validate my xml with xsd schema, I assume that is the xmlns attribute, in my tests throws me the following error: "The {name} of an attribute declaration must not ...
user3317256's user avatar
1 vote
1 answer
454 views

How to add parent "wrapper" elements and validate them in existing schema

I have created a xml schema that validates my xml instances. Since I have been working on it for a while I have been commenting off little pieces of xml code at the time in order to simplify my ...
Stribor50's user avatar
0 votes
1 answer
88 views

Xml schema uniqueness in entire subtree

Hey guys I have a tricky problem that I can't see to solve. I'm trying to validate unique attribute values in all descendant nodes. Not even sure this is possible given the limited xpath subset but I ...
gettingSmarter's user avatar
1 vote
1 answer
421 views

xsd validation based on two keys

I want to validate the following xml: <?xml version="1.0" encoding="UTF-8"?> <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <root1> <items> ...
vitalivanov's user avatar
1 vote
2 answers
72 views

How to conditionally select a node in XPath

The XSD schema I am working with, calls for either an international or domestic address: "/mns:PhysicalAddress/mns:DomesticAddress/mns:City" or "/mns:PhysicalAddress/mns:InternationalAddress/mns:...
WinWin's user avatar
  • 7,643
0 votes
1 answer
470 views

Schema aware XQuery

Currently I'm using Eclipses XQuery plugin xqdt with the XQuery engine Zorba. I would like the XQuery engine to "type check" the correctness of my XPath expressions, e.g. if the schema defines ...
Stefan K.'s user avatar
  • 7,751
0 votes
1 answer
42 views

how to get and change xml schema by using php?

i only want to know how to get and change data from (xml schema) by using (php) , and check if the data such as ID is already in the database ?!
user3310549's user avatar
-1 votes
1 answer
675 views

Re-arranging xml using xslt considering element attribute value [closed]

I have the following xml: <Users> <User id="2" name="ABC" Division="HR"/> <User id="3" name="xyz" Division="Admin"/> <User id="4" name="LMN" Division="Payroll"/> &...
Biju's user avatar
  • 17
0 votes
1 answer
45 views

Referring xs:complexType in another complexType

I have two complex types declared as(the type SecurityRule is well defined): <xs:complexType name="SecurityGroup"> <xs:sequence> <xs:element name="rules" type="SecurityRule"...
Piyush-Ask Any Difference's user avatar
0 votes
1 answer
159 views

how to create simple derived type from XSD

how to can I create derived simpleType in your XSD file BASED ON xs:ID. The restriction should use a pattern with a value that starts with a "_", followed by two characters that are digits in the ...
user avatar

1
153 154
155
156 157
285