I
ibrahimover
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>
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>