relaxng

XML Schema Validation with RelaxNG

Which XML validation tools can you recommend for both performance and accuracy, each of which is a critical issue on our system? We have the following requirements: It is not not xmllint (see below) Supports RelaxNG Can easily integrate with Perl (this is optional, but it would be nice) Why not xmllint? (This is background and you ...

RelaxNG (rnc) schema to extend XHTML

I would like to edit XHTML files using Emacs' nxml-mode which can use rnc schemas for on the fly validation. This is all built in to newer Emacs versions. However, my XHTML files contain elements from another schema. So <foo:foo> tags are valid, but only within the <xhtml:head> of the document. Currently, nxml complains because the XHT...

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">...

converting RELAX NG to XSD with trang while keeping external namespace elements (for use with JAXB)

I am using trang to convert a RELAX NG .rng file to an XML Schema .xsd file for use with JAXB. Is there a way to put attributes/elements in the .rng file and have them show up in the .xsd file? I have an external .xjb file that I use for JAXB settings, but there are some JAXB settings that are very closely coupled to the schema itself a...

Relaxer or JAXB for XML->Object Model?

I would like generate an AST from my XML-definition, to be used for code generation later on. The XML schema is written in Relax NG, since it seemed like a neater and more modern than XSD and DTD (loose assumption). I especially fancy the compact syntax, which feels more natural to work with and is far more readable than XML. Has anyo...

XML schema for ASPX?

I'm editing a lot of .aspx files in Emacs these days. nxml-mode can use a schema (RELAX NG, but maybe others) to detect errors in XML, and I find it really handy for other things. Is there a RELAX NG schema for *.aspx files? (I'm having trouble searching because "aspx" is so common not just as a language but as part of URLs.) ...

How do I validate XML via RELAX NG in Ruby?

The REXML module appears to have support for RELAX NG validation, but the docs don't have any real information on using the validation portion of the framework. How would you validate an XML document with a RELAX NG schema? A code snippet would be most helpful. TIA! ...

Schema-sensitive editing in emacs, based on W3C XML Schema? (not RNG)

I just learned, here, about nxml-mode, which, according to the README, is a major mode for GNU Emacs for editing XML documents. It supports editing well-formed XML documents and also provides schema-sensitive editing of XML documents using RELAX NG Compact Syntax. Is there a mode that does the same for W3C XML Schema? I...

How do I validate XML document using RELAX NG schema in Python?

How do I validate XML document via compact RELAX NG schema in Python? ...

How to validate an XML document using a RELAX NG schema and JAXP?

I would like to validate XML documents using RELAX NG schemata, and I would like to use the JAXP validation API. From Googling around, it appeared that I could use Jing and the ISO RELAX JARV to JAXP Bridge. Unfortunately, after adding both to my classpath, I can't get it to work. SchemaFactory is just throwing an IllegalArgumentExcepti...

Maintaining Consistency Between JavaScript and C# Object Models

I'm working on an ASP.NET web application that uses a lot of JavaScript on the client side to allow the user to do things like drag-drop reordering of lists, looking up items to add to the list (like the suggestions in the Google search bar), deleting items from the list, etc. I have a JavaScript "class" that I use to store each of the ...

Is there a Relaxer for .NET? Is Relaxer alive? Is RelaxNG viable?

I read about Relaxer, the thing that compiles .RNG to Java classes. BBut the website, http://www.relaxer.org/, is dead. Q1: Is Relaxer alive? Is it real, does it work? Is it reasonable to generate Java classes from .RNG? Q2: Is there a Relaxer for .NET? Is there a tool that generates C# classes from RelaxNG schema? Q3: Is there a R...

How can I use other/more modern schema validation with .Net?

Hi, I'm trying to do some work with C# and XML in a cross-platform app (most development is in MonoDevelop on Linux, but most users will end up using the WinForms front-end that I make in Visual Studio). Mono is behaving as I'd expect, but .Net isn't and so I'm looking for options and alternatives. The schemas have various optional ele...

XSD sequence shows as abiguous!

I have an XSD which was transformed from a RELAX NG schema with a few errors I am trying to fix. The big issue I have it with the following <xs:element name="list"> <xs:complexType> <xs:sequence> <xs:choice> <xs:sequence> <xs:element minOccurs="0" ref="preamble"/> <xs:element minOccu...

RELAX NG C++ Code Generator?

Are there any open source RELAX NG C++ code generator? Thanks. ...

Is there an application that can help someone create an XML document based on the Relax NG schema?

I've spent a bit of time creating a Relax NG schema for use within our team to validate XML documents we use for exchanging information. The schema is not complicated, but it is reasonably large. I am wondering if there exists a tool that can read in such a Relax NG schema and assist a user in creating a corresponding instance document,...

What does the ns attribute in the grammar tag of a RelaxNG schema do?

I can't seem to find any documentation on it that makes any kind of sense to me. I've noticed that it seems to relate to the xmlns attribute of the schema that is being validated. It looks like if the ns of the schema grammar tag and the xmlns of the root node of schema to validate don't match, I get a validation error. What is the ns...

built-in schema datatype for html / xhtml

Is there a built-in schema datatype for xhtml data? Suppose I want to specify a "boozle" element that contains two "woozles", each of which is arbitrary xhtml. I want to write something like this, using the relax NG compact syntax: namespace nifty = "http://brinckerhoff.org/nifty/" start = element nifty:boozle {woozle, woozle} woozle...

Can I convert RELAX NG to the XSD?

Hello, Subject. And If I Can that second question How? I tried to use "trang" java library and nothing happened :( ...

.Net and RelaxNG Schemas

Hello, a few weeks ago I started to use xsd.exe for create classes for serialization/deserialization xml files based on the xsd schema. Currently I am finding util like xsd.exe for create classes from RelaxNG Schemas. Can you help me to find it ? ...