We have a ReST Web Service that uses POST - to insert data into database (unmarshall data from XML), and GET to retrieve data (marshalled into XML).
An XSD is used to generate Java objects (via Sun's JAXB compiler) to marshall/unmarshall data to and from a database.
We kind of froze the XSD as it is, because we thought this models the...
Hi,
I have a question regarding adding restriction in my xml schema(xsd). I have a complex-type like:
<-->xsd:complexType name="xxx">
<-->xsd:attribute/>
.....
<-->/xsd:complexType>
I have many attributes in this complex-type, and few of them are of string type. Now I want those string type attributes to be restricted to y no. o...
I am trying to extend an XML schema to change the number of times a child can occur under an element.
In the original schema, the parent type is defined as such:
<xsd:complexType name="CrimeLineBusiness_Type">
<xsd:complexContent>
<xsd:extension base="PCLINEBUSINESS">
<xsd:sequence>
<xsd:element ref="CrimeSchedule" minOccurs=...
Hi,
I am creating attributes for a complex-type element. I created an attribute, which itself is of complex type. When I tried compiling my code, it threw an error saying could not find simple-type attribute corresponding to the attribute of complex-type. Can't we create attributes of complex-type?..I also looked at w3c schools, but it ...
Hi,
I have a complexType like:
<xsd:complexType name="NightlyRate">
<xsd:complexContent>
<xsd:extension base="com:Money">
<xsd:attribute name="night" type="com:Number" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Now, I want to add a child element to "NightlyRate", whi...
Hi.
I find configsource references in the .config-files to be very helpful. However, since these referenced config-files only contain fragments of the entire app.config hierarchy, the IDE complains.
In the app.config file:
<configuration>
<configSections>
<section name="customProfiles" type="SomeConfigClass, SomeAssembly"/...
What is the benefit of using attribute groups over attributes in defining an XSD Schema?
Ok... so I can declare them elsewhere and reference them...
What else?
...
I have a schema (xsd), and I want to create xml files that conform to it.
I've found code generators that generate classes which can be loaded from an xml file (CodeSynthesis). But I'm looking to go the other direction.
I want to generate code that will let me build an object which can easily be written out as an xml file. In C++. I...
I have an XSD file with an enumerated type. I'd like to create an "extended" XSD file, which adds some additional enumerations, but otherwise behaves just like the main XSD.
For example, the main XSD file contains this:
<xsd:simpleType name="color">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="red"></xsd:enumera...
Hi,
I am using JAXB to parse my xml schema(xsd). I have a complexType as follows:
<xsd:complexType name="PromotionalInfo">
<xsd:attribute name="promotionName" type="xsd:string" use="required"/>
<xsd:attribute name="blackOutDates" type="DateList"/>
<xsd:attribute name="amount" type="xsd:float" use="required"/>
<xsd:attri...
Hi,
I have been having problem with adding type="date" in my schema, as whenever it is null it throws a marshalling error. I found out that for elements we can add an attribute like nullable="true" and get rid of this issue. But, wasn't able to find similar way for attributes. Is there a way to avoid this issue for attributes?
Thanks!...
Where can I find the W3C XML Schema (XSD) for a .csproj file, for Visual Studio 2008?
It seems like this should be obvious, but I spent some time and haven't found one.
I looked in %VS2008%\xml\Schemas, no joy. no joy searching the 'tubes either.
...
Hi there !
I'm working v.s 2008 with c#.
I have a xsd file and i m writing a method in that DataSet's .cs file which is return a datatable. also i'm using a report wizard. And i want to my report using that methods. how can i give my method to my report as a reference?
...
I have the following object XSD type. The Data element should actually be represented by a byte[] type, however, I am not sure how to model this in XSD. Could anyone help?
...
Hi
I'm trying to validate the following XML against a XSD schema using Ruby.
It simply won't work, stops with an error message telling me
Error: Element 'request': No matching global declaration available for the validation root.
Maybe it's the namespace? I'm desperate. Please help. Thanks!
XML:
<?xml version="1.0" encoding="UTF-...
I would like to produce C# helper files from the KML2.2 xml schema using the XSD.exe tool (from VS2008 SDK). With KML2.1, the tool worked just fine. However, the KML2.2 schema contains import tags pointing to other schemas causing XSD.exe to freak out.
This is the error message I get:
C:\Program Files\Microsoft Visual Studio 2008 SDK...
Say I have these types defined in my XSD:
<complexType name="NamedEntity">
<attribute name="ix" type="positiveInteger"></attribute>
<attribute name="sName" type="string"></attribute>
<attribute name="txtDesc" type="string"></attribute>
</complexType>
<complexType name="Node">
<complexContent>
<extension base="tn...
Hi All,
Is anyone aware of a vendor neutral XSD to describe a relational database schema? Our system needs to grab information about the structure of a database:
Tables
Columns and types
Primary and Foreign Keys Constraints
Indexes
etc
in a vendor independent manner and store it in an XML file for later processing.
Before we...
Consider the following:
<xs:complexType name="A">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="subAGroup"/>
<xs:group ref="xGroup"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="B">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="subBGroup"/>
<xs:group ...
I'm looking for a comprehensive setup that you've successfully used already. I've already loads of hints as to what building bricks I might use, but I'm not sure how to put it all together. Tools that need to be bought are OK, too.
Details:
I'm developing a Flex front end client for a Java server application and I have a set of model c...