xsd

How to deploy Crystal Report that uses push method (xsd file dataset datasource).

Can anyone suggest best method for what I want to accomplish? I have an VS 2008 asp.net(MVC) web app and I am using Crystal Reports as my report engine. My app accepts parms from a form and calls a SQL Server stored proc to create a Dataset which I set as the datasource for the report. The report was created using an XSD file as a schema...

Best Practices of Uploading XML files in a Web-Application

What's the best approach (industry standard) when another business needs to upload an XML file into your web-application on a regular basis? The contents of the XML must be stored in a table. And, the contents of the XML file needs to be inserted into a parent table and related child table with other relationships to other lookup table...

XML urn:# is not a valid value for anyURI

Hi there, I am having some troubles on a wsdl file, which on SONIC Workbench is not accepted, while on Oracle JDev and SOAP UI is tolerated. Basically the parser claims the following: Exception: org.xml.sax.SAXException: Error: cvc-datatype-valid.1.2.1: 'urn:#ApproveAccumulatedProvisioningRolesSoap' is not a valid value for 'anyURI'. ...

Strange XML schema

Ok, so I have been tasked with writing an XSD from an XML document given to us by a vendor. This vendor does not have an XSD they can furnish, so I am reverse engineering one. Here is an example of the way this xml is formed: <field name="id">1</field> <field name="Sport">Football</field> <field name="Position">Quarterback</field> <fi...

How to define the content of an element to be unique?

How can i define that the content of the emailaddress-element has to be unquie compared to all other emailaddresses entered inside the users-tag? <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; <xs:element name="users"> <xs:sequence> <xs:element name="user"> <xs:e...

"A relation already exists for these child columns" when using XSD.exe to generate DataTable Class

We've received an XSD (and XSX) file from a customer that defines the format of the XML file that we will receive from them. I've used XSD.EXE to create a Data Table class that I use in my C# project to access the information within the XML file. This has worked and I have an import library that is able to read in an XML file and spit ou...

Handling XSD element declared twice

I have an XML Schema referencing two other schemas where the same element is declared twice resulting in an invalid schema. Is there any built in XSD construct allowing me to handle this situation by ignoring one occurrence or is this situation just fundamentally wrong? ...

Convert Cobol copybook to XSD

Does anyone know a tool to convert from Cobol Copybook to XSD? Or XML. ...

converting csv to xml with an xsd

I am trying to find a reusable way of taking a CSV file and generating an XML file from it that conforms to a specified XSD. I haven't really found a reusable approach for this. I have used Altova MapForce which lets me import a CSV file and XSD, do the mapping than generate code from this, but the code needs to be regenerated whenever t...

How to insert a xml element from another namespace as a child and still be a valid xml?

I have the following xml file <Layout xmlns="http://tempuri.org/Layout/"&gt; <Numeric Id="temperature" Caption="Temperature"> <validation:IsValidWhen xmlns:validation="http://tempuri.org/Validation/"&gt; </validation:IsValidWhen> </Numeric> </Layout> The http://tempuri.org/Layout/ XSD does not have a reference to http://t...

Web Site Design Allowing XML Upload with Supporting XSD

We are designing a web-site allowing business to upload data via XML. We have the XSD for the XML upload. What's the industry standard in supplying the XSD for the users? Is it provided on the web-site as a download? Thanks-- ...

Where do we need XSD.exe

I have been working with WebServices for sometime. I dealt with many services where XSDs were linked with WSDL for validation and such... But whenever I get any such requirement, I always used WSDL tool to generate proxy using .wsdl and .xsd files. The type defined in XSD were automatically generated in the proxy. I know what this tool...

Toolkits or Applications That Build UI From Xsd

I need to build a user interface to edit and create xml documents that confirm to a given xsd. What I'd like to do is, as far as possible, generate my user interface based upon that xsd schema. The xsd schema can (and will) change over time and so the solution needs to be somewhat flexible. The user interface needs to be a web UI and, i...

Validating against generated xsd files in Visual Studio

I have around twenty XML files in various Visual Studio 2008 projects, each of which both defines certain objects and refers to objects in the file and other files. e.g. <some_object name="a" /> <some_object name="b"><refers_to ref="a" /></some_object> Files refer to other files using custom <include file="blah.xml" /> elements, rathe...

using xsd.exe to generate xsd schema for a generic class.

Hello Everyone, I recently discovered the cool abilities of xsd.exe to generate schemas from types in a dll. However I am having trouble generating them for generic types. For example what command line paramters would I use to generate a schema for List? If it matters, I am using these schemas with linq to xsd to create strongly type...

Verify if all attribute type xs:ID are present in the XML

I've made an XSD that contains this complex Type "Text" : <xs:complexType name="Text"> <xs:complexContent mixed="false"> <xs:attribute name="Id" type="xs:ID" use="required"> </xs:attribute> </xs:complexContent> </xs:complexType> In a string, I want to find all the Text nodes that are missing the ID. Is there a way to vali...

Mapping Java with JAXB annotations to XSD keys/keyrefs

We are using JAXB to map Java classes into XML files. Currently we use the Java-to-XSD approach by annotating the Java classes. This works fine in general but we've hit the following problem now: we want an attribute of one XML element to refer to another XML element by it's name/ID. Imagine some XML describing a conceptual schema, with...

Generating custom annotations using XJC

I want my classes generated from XSD schema by XJC to be annotated with custom annotations (actually specifying class name). For example, from the following XSD schema <xs:complexType name="Unit"> <xs:attribute name="Id" type="xs:string" use="required"/> </xs:complexType> XJC generates: @XmlType(name = "Unit") public class Unit ...

regex for four-digit numbers (or "default")

I need a regex for four-digit numbers separated by comma ("default" can also be a value). Examples: 6755 3452,8767,9865,8766,3454 7678,9876 1234,9867,6876,9865 default Note: "default" alone should match, but default,1234,7656 should NOT match. ...

Conventions for annotating appinfo in xml-schema?

I believe the three below are syntactically correct; but which are permitted according to conventions (especially in the enterprise)? The first one below is used in most examples I've seen (e.g. JAXB), but it's verbose: <xs:annotation> <xs:appinfo> <myinfo>don't panic</myinfo> </xs:appinfo> </xs:annotation> This second one ...