Problem
I'm using Xsd2Code (a .NET class generator for XSD schema) on a simple settings file schema. For some reason, when I attempt to use the built-in LoadFromFile() or Deserialize() methods, I get an exception that seems to be related to the xmlns attributes in my XSD and XML files. If I remove these attributes, the exception goes aw...
I have a SQL SELECT Statement:
SELECT Code, Description
FROM Table1
WHERE (Code='a' and Amount>100) or (Code='b' and Amount<100)
I wish to use XML to present the SELECT statement. Here is my initial design:
<select table="Table1">
<columns>
<column name="Code"/>
<column name="Description"/>
</columns>
...
Hello all,
I'm using WSDL ecore together with XSD ecore to read and edit WSDL file. During my edit I need to remove a couple of XSD Types and Elements and replace them with the reference to the XML Schema stored eslwhere.
I'm loading the WSDL and I can see everything inside using nice interfaces provided by WSDL ecore. I can also see ev...
I have an xsd document that starts with:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:complexType name="T_segment">
<xs:sequence>
<xs:el...
I have a java application where i can map a XSD type to another with same type. Now i have requirement to have one anyType xsd to which i can map any type. Like as we have Object type in java, is it possible to create like in XSD.
Edit: At complex type level is it possible.
...
I have an xsd. When I try to validate it in BizTalk it gives these errors:
error BEC2009: Node "<Schema>" - Schema reference "http://www.w3.org/2001/xml.xsd" is not a valid reference or does not exist in the current project.
error BEC2009: Node "<Schema>" - Schema reference "http://www.w3.org/2001/xml.xsd" is not a valid reference or ...
The application I work on has XML output that conforms to an XSD schema. As features are added to the application, the XSD changes and I would like to note the version of the schema in the XSD file.
Perhaps I'm missing something, but I haven't found a built-in way to mark the version of the schema.
How do you do it?
...
I am using the .xsd dataset thingies (which I hate) to auto-generate TableAdapter classes for some backend code.
I have not really used these before, tending to favour manual commands and stored procs whenever possible (for various speed-induced reasons: those xsds play hell with dynamic tables and really large amounts of columns), and a...
I've got a situation where my BizTalk map is not extracting data from input XML correctly.
The input schema looks like this:
Sequence
A
B
All 3 of those nodes on the XSD have min 0, max unbounded.
So here's a sample input file fragment:
<A>1</A>
<B>hi</B>
<A>2</A>
<B>there</B>
Now my map takes this data and calls stored pr...
I have an XSD file and I want to create an XML file at runtime based on the XSD. (My question is basically the same as this one, except in the .NET world, rather than for Java.)
I have run xsd.exe /c /l:vb MyTest.xsd, but that generates a class that cannot be instantiated and used, as it has nested classes that are never instantiated. ...
For Typed Xml to Linq processing ,do i need to download Linq to XSD alpha installer or is it available in VS 2008 ? (I am using VS 2008 Professional edition).
...
Hello,
I want to generate a typed DataSet for both Oracle and DB2 databases from a single XSD file.
Background:
When I drag a table onto the Visual Studio Dataset Designer, it generates a XSD file (e.g. DataSet1.xsd) with all appropriate information. Then VS invokes the built-in Tool (MSDataSetGenerator) to generate the Dataset classes...
I have a tag having attributes name required , link='notusing' required and replaced_with (it should be optional only link value is not a string of 'notusing').
Also xsd has to check whether the xml has font with a name that is specified in replaced_with.
Example:
<fonts>
<font name='font1' link='inuse'/>
<font name='font2' link='in...
How can I retrieve these enumeration types on an xsd simpleType with c#? Here is a sample simple type?
<xs:simpleType name="PaymentType">
<xs:restriction base="xs:string">
<xs:enumeration value="Cash" />
<xs:enumeration value="CreditCard" />
</xs:restriction>
</xs:simpleType>
thank you
...
I am trying to write a schema that doesn't require specific ordering for an extended type. I tried to use an "all" group, but it seems to only permit a "sequence".
I am getting this error message and am a bit confused.
An all model group must appear in a particle with {min occurs} = {max occurs} = 1, and that particle must be par...
Hello
I Use XJC tool to generate Java classes for my XSD schema. When I use JAXB Marshaller to marshall classes into XML payloads, I'm missing "schemaLocation" parameter in the output XML, but I declare this parameter in xsd file. How to enforce "schemaLocation" parameter in the output XML?
Below is the beggining of my xsd schema file ...
When I try to validate an XML file against an XSD in java (see this example) there are some incompatibilities between the regular expressions given in the XSD file and the regular expressions in java.
If there is an regular expression like "[ab-]" in the XSD (meaning any of the characters "a", "b" or "-", java complains about a syntax e...
In the XML shown below, Is there a way to create a schema that will describe the XML so that the id value will increase by 1 with the addition of each Book node. The goal is to use id as a primary key whose minimum value = 1. Also, id values should be are sorted in an ascending manner.
<Books>
<Book id="1"></Book>
<Book id="2">...
Possible Duplicate:
Programmatically Create XML File From XSD
XML instance generation from XML schema (xsd)
How to generate sample XML documents from their DTD or XSD?
Here's the scenario: I've created an application that hooks into a commercial CRM product using their web service API, which unfortunately has a di...
How can I use XSD.exe to create an XML schema for the Microsoft.AnalysisServices.Database object?
...