Jump to: navigation, search

Difference between revisions of "Eclipse Build Available RSS Schema"

m (add categories)
m
Line 1: Line 1:
Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds:
+
Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds consists of two files:
  
== atom10_build.xsd ==
+
* Atom 1.0 spec, enhanced to include a build feed in its <code style="color:DarkGreen">&lt;summary/&gt;</code>: [http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/atom10_build.xsd?content-type=text/plain&only_with_tag=releng_test atom10_build.xsd]
 +
* The <code style="color:DarkGreen">&lt;build/&gt;</code> node's addition to the above schema, including restrictive vocabulary for status codes and ids: [http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/build.xsd?content-type=text/plain&only_with_tag=releng_test build.xsd] 
  
<?xml version="1.0" encoding="UTF-8"?>
+
From these two files you can easily generate an EMF editor to quickly validate your feed document against the latest spec. For details, see [http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org.eclipse.emf/doc/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html generating an EMF editor from XML Schema].  
<xs:schema xmlns:atom="http://www.w3.org/2005/Atom" xmlns:bf="http://www.eclipse.org/2006/BuildFeed"
+
  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+
  targetNamespace="http://www.w3.org/2005/Atom">
+
  <xs:import namespace="http://www.eclipse.org/2006/BuildFeed" schemaLocation="[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/?only_with_tag=releng_test '''''build.xsd''''']"/>
+
 
+
  <xs:element name="feed">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element ref="atom:title"/>
+
        <xs:element ref="atom:link"/>
+
        <xs:element ref="atom:updated"/>
+
        <xs:element ref="atom:author"/>
+
        <xs:element ref="atom:id"/>
+
        <xs:element maxOccurs="unbounded" ref="atom:entry"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="author">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element ref="atom:name"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="name" type="xs:string"/>
+
  <xs:element name="entry">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element ref="atom:title"/>
+
        <xs:element ref="atom:link"/>
+
        <xs:element ref="atom:id"/>
+
        <xs:element ref="atom:updated"/>
+
        <xs:element ref="atom:summary"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="summary">
+
    <xs:complexType>
+
      <xs:sequence>
+
        <xs:element maxOccurs="1" minOccurs="1" ref="bf:build"/>
+
      </xs:sequence>
+
    </xs:complexType>
+
  </xs:element>
+
 
+
  <xs:element name="title" type="xs:string"/>
+
  <xs:element name="link">
+
    <xs:complexType>
+
      <xs:attribute name="href" type="xs:anyURI" use="required"/>
+
      <xs:attribute name="rel" type="xs:NCName"/>
+
      <xs:attribute name="type"/>
+
    </xs:complexType>
+
  </xs:element>
+
  <xs:element name="updated" type="xs:NMTOKEN"/>
+
  <xs:element name="id" type="xs:anyURI"/>
+
</xs:schema>
+
 
+
== build.xsd ==
+
 
+
For the latest, see [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema/?only_with_tag=releng_test /cvsroot/eclipse/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/schema]
+
  
 
[[Category:Modeling]]
 
[[Category:Modeling]]
 
[[Category:Releng]]
 
[[Category:Releng]]

Revision as of 22:41, 25 September 2006

Latest XML Schema for the Eclipse.org RSS feeds for announcing available builds consists of two files:

  • Atom 1.0 spec, enhanced to include a build feed in its <summary/>: atom10_build.xsd
  • The <build/> node's addition to the above schema, including restrictive vocabulary for status codes and ids: build.xsd

From these two files you can easily generate an EMF editor to quickly validate your feed document against the latest spec. For details, see generating an EMF editor from XML Schema.