How do I create a Schema for an Atom extension ?

This should cover W3C XML Schema, Relax NG and DTD related problems.
amix
Posts: 81
Joined: Sat Aug 05, 2006 10:43 pm

How do I create a Schema for an Atom extension ?

Post by amix »

Hi,

I want to enrich an Atom feed with tags and attributes from my own namespace.
The problem I have is, that some of my elements go into their own containers (my namespace) within the <feed> root, others are additions to already available feed elements, such as <author>.

Also, sometimes I want to add my own atributes to existing Atom elements. How shall I do this ? Shall I give the XSD generator a full example of the way a feed may look like with my extensions or is there another way to automate this, or do I need to create the XSD manually (I know zero, nada about XSD, so I have great hopes, that oXygen will do it all for me ;-))

Example (Atom is default-namespace)

Code: Select all


<feed>
<author>
<name>Jonny Foo</author>
<email>jonny@foo.bar</email>
<myns:jabber>jonnyfoo@jabber.org</myns:jabber>
</author>
<myns:something foo="123" />
<item myns:origin="http://foo.dot.org">
[itemstuff...]
</item>
</feed>
Andreas