xsd

Ignore order of elements using xs:extension

How can I design my xsd to ignore the sequence of elements? <root> <a/> <b/> </root> <root> <b/> <a/> </root> I need to use extension for code generation reasons, so I tried the following using all: <?xml version="1.0" encoding="UTF-8"?> <xs:schema targetNamespace="http://www.example.com/test" xmlns:xs="http://www.w3...

XSD complexContent element one name multiple forms

the name sums it up GRP2 can come in multiple shapes and flavors heres my schema <xsd:element name="root"> <xsd:complexType> <xsd:sequence> <xsd:element name="GRP1" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:complexType name="GRP1"> ...

XSD: xs:sequence & xs:choice combination for xs:extension elements?

Hi, My question is about defining an XML schema that will validate the following sample XML: <rules> <other>...</other> <bool>...</bool> <other>...</other> <string>...</string> <other>...</other> </rules> The order of the child nodes does not matter. The cardinality of the child nodes is 0..unbounded. All the chi...

Free lightweight XML text editor to include with an application

Our application uses a XML configuation file. I thought that it would be nice to distribute some XML editor with our application, so that the user can conveniently edit the config file. Features should be: Small and lightweight (ideally, a small .exe that does not require installation), free, with license terms that permit distributing...

Design an XML Web Service & XML Schema for Compatibility with Various Toolkits

I'm planning an XML web service that takes an XML request and returns an XML response over HTTP. It's not SOAP, and it's not pure REST either - I think it might be best described as a POX (Plain Old XML) API. (More details towards the end of this post, if you're interested, but I'm trying to keep my main question general.) My experien...

Anyone experiencing slow WPF application with RDLC reports?

Hi guys I have an WPF application for 60 users tops. Some of they are cashier users, and I use RDLC reports to show customer orders. The problem is, users are telling that application is getting slow or hanging. This WPF application uses most up-to-date Enterprise Library. Connection pooling is handled by default, there's no customiz...

Java libraries for converting xsd to bean/objects

What are my options for libraries to convert XSD files to java beans or objects? I have a large XSD that I have been trying to convert using JAXB2, but JAXB2 is creating invalid classes. ...

operation specified in binding is not defined for 'Porttype', but it is there, wsdl.. help..

Hi guys... this thing is driving me crazy... Whenever I try to validate it.. it gives me error at <wsdl:operation name="ComposedClassOpt"> complete definition is below... that "The operation specified for the 'Binding' binding is not defined for port type 'ComposedClassPortType'. All operations specified in this binding must be defin...

changing restriction on simple type in extended complex type

I am trying to create a schema that has 2 address types. The first AdressType requires an element Line 1 to have a value at least 10 characters. The second type OtherAdressType derives from this with the same elements, but does not require a value for Line 1. I've tried different ways but always get schema errors, this error is: Invali...

Get XSD schema for C# type

Hello, how can I generate a xsd schema for a c# type (in code). There must be certainly a way, because xsd schema is generated for datacontracts in wcf. ...

Preventing Netbeans JAXB generation trashing classes

I'm developing a SOAP service using JAX-WS and JAXB under Netbeans 6.8, and getting a little frustrated with Netbeans trashing my work every time the XSD schema my JAXB bindings are based upon changes. To elaborate, the IDE automatically generates classes bound to the schema, which can then be (un)marshalled from/to XML using JAXB. To ...

Parsing an xs:duration datatype into a Python datetime.timedelta object?

As per the title, I'm trying to parse an XML file containing an xs:duration data type. I'd like to convert that into a Python timedelta object, which I can then use in further calculations. Is there any built-in way of doing this, similar to the strptime() function? If not, what is the best way to achieve this? ...

Writing XSD schema: if one field contains "A", then other field should not contain "B". How???

A simple scenario: if one field contains "A", then the other field should not contain "B". How to write a XSD schema for it. Example: <root> <field_1>A</field_1> <field_2>B</field_2> </root> How to write an XSD schema that imposes restriction on the value of an element, depending on the value of another element? ...

Design interoperable web services

Hi everyone, I'm designing a set of web services to allow our clients to connect from their apps to one of our systems. Our clients have their apps developed in all varieties of frameworks (.NET, Java, PHP, Python and even the occasional all JS app), so obviously WS is the way to go. Investigating a little about truly interop WS I've f...

Using SQLXML Bulk Load in .NET Environment - Error with One to Many relationship on Complex Type

Hi, I have an error when I am importing an XML file using SQLXMLBulkLoad, wondering if anyone could help. Error: Data mapping to column 'Attribute' was already found in the data. Make sure that no two schema definitions map to the same column Full files and details can be found here http://www.experts-exchange.com/Microsoft/Development/...

How can I have sub-elements of a complex/mixed type with unrestricted order and count?

I am working with XML where some elements will contain text with additional markup. This is similar to this example at W3Schools. However, I need the markup tags to be able to appear in any order and possibly more than once. To modify their example for illustration: <letter> Dear Mr.<name>John Smith</name>. Your order <orderid>10...

XML Schema: Can I make some of an attribute's values be required but still allow other values?

(Note: I cannot change structure of the XML I receive. I am only able to change how I validate it.) Let's say I can get XML like this: <Address Field="Street" Value="123 Main"/> <Address Field="StreetPartTwo" Value="Unit B"/> <Address Field="State" Value="CO"/> <Address Field="Zip" Value="80020"/> <Address Field="SomeOtherCrazyValue" V...

Why is this CHOICE element not getting assigned in my SharePoint Field definition schema?

I defined a new field of the type "Choice" for my web application. It will serve basically as a pseudo-lookup as its contents are defined by the value of a Text field in a list. It is initialized with a dummy choice to begin with (I'm under the impression a choice field needs at least one choice when defined), which is replaced with a re...

Contract first WSDL with IDREF not generating corresponding @XmlIDREF annotation

I am developing a web service contract first, and I wish to use XML object graphs (ID, IDREF) to eliminate redundant data. So, I have a situation where I have a complexType which has an xsd:ID attribute, and another one referring to it through xsd:IDREF. I also included the jaxb:baseType with the name of the complexType so that the clas...

Where to get the Google Search XSD

we are developing an Google search component for our website. We are getting the result from Google in the form of XML. Where Can I find the XSD for Google search results? ...