xml-schema

How to add external data to an XML?

I've got an XML Schema and an XML instance that is valid to that schema. This XML instance contains some data. I'd like to extend the XML instance with further data(my own meta-data per XML element in the XML instance) while keeping it valid to the provided schema. The real use-case is that I've my own control that gets its data via X...

Creating a specific XML document using namespaces in C#

We were given a sample document, and need to be able to reproduce the structure of the document exactly for a vendor. However, I'm a little lost with how C# handles namespaces. Here's a sample of the document: <?xml version="1.0" encoding="UTF-8"?> <Doc1 xmlns="http://www.sample.com/file" xmlns:xsi="http://www.w3.org/2001/XMLSchema-in...

How to fix an XSD validation error?

Hi, I have an XML form with an element 0, which is well-formed but not valid. When I try to validate it XMLSpy I get a following error: Nothing is allowed inside empty element 'hidden'. Below is my schema: <xs:element name="hidden"> <xs:complexType> <xs:attribute name="datatype" type="xs:string" use="optional"/> <xs:attr...

Is there any defined atom syndication xml schema?

Yep, I asked it. There is no more thing to tell :) Thanks in advance. ...

What are the advantages of having typed XML columns in SQL server?

From what I've read an XML column in SQL server can be typed (having a schema) or untyped. What are the advantages of using typed XML? Is it just that the XML is validated? ...

DTD questions (one or the other [or both])

For my assignment I have been assigned the task of creating a DTD for representing a virtual-geocaching game. I am having a problem representing the location which can be either gps or wifi or both but not more then one of each. How would i represent this? The closest I could think of is listed below. <!ELEMENT location ((gps|wifi)+)>...

Need help with modifying PrintTickets through XML

Doing some work on controlling printing via the System.Printing framework (main classes are PrintQueue, PrintTicket and PrinterCapabilities). Like with most stuff I've been working on lately, there's damn little information about it. I'm hoping to compile some good information in this question to help flesh out this subject. PrintTick...

What's the best XSD (XML Schema) authoring tool?

Good XML tools abound, but when it comes to creating (authoring) XSD files (XML schemas), things really don't look good. Most XML editors do the basic: it let you create stuff, with menus for the proper elements. They don't HELP you in any way, though. A few tools have more advanced features, like creating an XSD based on a sample of XM...

Open source tool to generate diagrams from XML Schema documents?

I'm looking for an open source tool to generate diagrams from XML Schema documents, similar to the Logical Model View in oXygen or the diagrams in XML Spy's Schema Editor. ...

XML Schema - getting around unique tag constraint

I have to make a schema for an XML format that's already being used. The existing XML is being generated already by a different program, and it sounds like it would be difficult to track down all the places that would need to be changed in order to use a more regular XML format. Here's an example similar to our XML structure: <data> ...

Creating a custom JAXB annotation

Do people have any recommendations on how i could write my own custom JAXB annotation handling class to support the generation of xs:annotation/xs:documentation elements in the xsd schema?. I'd like to create a new java annotation "@XmlAnnotation" which would include a "documentation" attribute. I'd then make these classes available to t...

Storing Database-Agnostic Schema

We have a set of applications that work with multiple database engines including Sql Server and Access. The schemas for each are maintained separately and are not stored in text form making source control difficult. We are interested in moving to a system where the schema is stored in some text-based format (such as XML or YAML) with d...

Any schema language for XML that allows for specifying constraints like no cyclic references?

Is there any schema language for XML that allows for specifying a constraint that there can be no cyclic references between elements. As a toy example: <animal name="A" eats="B"> <animal name="B" eats="C"> <animal name="C" eats="D"> would validate, but <animal name="A" eats="B"> <animal name="B" eats="C"> <animal name="C" eats="D">...

Java XSLT processors supporting XPath 2.0

What are the currently available XSLT processors supporting XPath 2.0 standard? ...

How can I mix unbounded groups with restricted groups in a complexType?

I'm trying to create a tool that can generate XSDs for the XAML produced by serializing a type in .NET, but this is not specifically .NET related. Let's say I have a type. This type has properties and is a collection. public class MyType : Collection<CollectedType> { public PType1 PropertyOne {get;set;} public PType2 PropertyTwo...

Dynamic xsd and Biztalk 2006

Hi all, I'm sort of a biztalk newbie and we run 2006 here with plans to migrate to 2006 R2 in the future. I have a schema that I need to work with called Siri, which is public at: link text or link text for the root xsd document. I have successfully imported this schema into my biztalk project, however, I am finding it difficult to ge...

Visual Xml to .net object mapper

Hi guys: I have to export my data, practically the entire domain model structure into a formal xml file. Does anyone know a visual tool that I can use to map an xml schema to my .NET object model? ...

How to find out an element node with a empty string value in xsl

Hi, everyone: I am working on transforming a xml file from old version to new version. Here is the basic template which i am using: <xsl:template match="*"> <xsl:element name="{name(.)}" namespace="{namespace-uri(.)}"> <xsl:copy-of select="@*"></xsl:copy-of> <xsl:apply-templates></xsl:apply-templates> </xsl:element>...

Map XML structure to database schema

Is there a tool that directly maps XML structure to database schema? The reason I ask this is because my data is best described in terms of XML structure. However, I want to store them in database for fast query result and other benefits. ...

XML Schema: Restrict child element based on attribute value of parent element?

Is there any way to restrict the use of an XML element's sub elements, depending on the attribute value of the parent element in XML Schema? How does the schema have to look like? <option name="mike" value="excset"> <excludingsets> <excludingset> <option name="hd"/> </excludingset> </excludingsets> </option> <option na...