schema for map XML

From: Aristedes Maniatis (ar..sh.com.au)
Date: Thu Dec 04 2008 - 05:44:33 EST

  • Next message: Andrey Razumovsky: "Re: [VOTE] 3.0M5 Release"

    I've put together a preliminary schema. I am sure adjustment will be
    needed, but I think it is a good first cut. I'd appreciate some
    feedback about whether it validates your models, so please take your
    xxx.map.xml file and hand edit the top of it to change this:

    <?xml version="1.0" encoding="utf-8"?>
    <data-map project-version="3.0">

    to this

    <?xml version="1.0" encoding="utf-8"?>
    <data-map project-version="3.0" xmlns="http://cayenne.apache.org/xml/ns/map
    " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://apache.org/xml/ns/cayenne http://people.apache.org/~amaniatis/cayenneMap.xsd
    ">

    Then please use a tool to validate this schema. Personally I use
    Oxygen which is really nice, but anything will do. You can even write
    a little Java tool to do it [1]. Ultimately that's how Cayenne Modeler
    will validate the XML to see that it matches the schema.

    We'll need to discuss how to name the namespace, and it might be nice
    to put lots of documentation into the schema file itself which will
    help people who want to dive in.

    Ari

    [1] http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/validation/package-summary.html

    -------------------------->
    ish
    http://www.ish.com.au
    Level 1, 30 Wilson Street Newtown 2042 Australia
    phone +61 2 9550 5001 fax +61 2 9550 4001
    GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A



    This archive was generated by hypermail 2.0.0 : Thu Dec 04 2008 - 05:45:20 EST