Atom Extensions sample

Discussion in 'XML' started by ibrahimover@gmail.com, Sep 27, 2007.

  1. Guest

    Hi all

    i have been searching for how to make extention elements on atom and i
    find some documents on it but ý couldnt understand how to do


    as ý understand we have to add code below to relaxng.rng file but
    question is where is that file and how will ý use my new rng file

    structuredExtensionElement =
    element * - atom:* {
    (attribute * { text }+,
    (text|anyElement)*)
    | (attribute * { text }*,
    (text?, anyElement+, (text|anyElement)*))
    }


    i guess there should be easier way to do this like we do on
    soarequests ,xml ... defining elements at xsd and it as namespace
    but i couldnt find any sample files

    basicly what i want to do is adding XXXX,YYYY,ZZZZ

    <?xml version="1.0" encoding="utf-8"?>
    <feed version="0.3" xmlns="http://purl.org/atom/ns#">
    <title>dive into mark</title>
    <link rel="alternate" type="text/html"
    href="http://diveintomark.org/"/>
    <modified>2003-12-13T18:30:02Z</modified>
    <author>
    <name>Mark Pilgrim</name>
    </author>
    <XXXX>
    <YYYY>........................................</YYYY>
    </XXXX>
    <entry>
    <ZZZZ>..........................................</ZZZZ>
    <title>Atom 0.3 snapshot</title>
    <link rel="alternate" type="text/html"
    href="http://diveintomark.org/2003/12/13/atom03"/>
    <id>tag:diveintomark.org,2003:3.2397</id>
    <issued>2003-12-13T08:29:29-04:00</issued>
    <modified>2003-12-13T18:30:02Z</modified>
    </entry>
    </feed>
     
    , Sep 27, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jake
    Replies:
    0
    Views:
    563
  2. chlori
    Replies:
    1
    Views:
    538
  3. Tim Chase
    Replies:
    0
    Views:
    76
    Tim Chase
    Feb 16, 2014
  4. Terry Reedy
    Replies:
    0
    Views:
    84
    Terry Reedy
    Feb 16, 2014
  5. Tim Chase
    Replies:
    0
    Views:
    88
    Tim Chase
    Feb 16, 2014
Loading...

Share This Page