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

How do I create a Schema for an Atom extension ?

Thu Jun 14, 2007 12:06 pm

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

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests