以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 Semantic Web(语义Web)/描述逻辑/本体 』  (http://bbs.xml.org.cn/list.asp?boardid=2)
----  parse问题  (http://bbs.xml.org.cn/dispbbs.asp?boardid=2&rootid=&id=84500)


--  作者:elfandi185
--  发布时间:4/26/2010 11:05:00 PM

--  parse问题
<?xml version="1.0"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:rec="http://recipes.org/"
  xmlns:ing="http://food.org/ingredient/"
  xmlns:nut="http://food.org/nutrition/"> 
<rdf:Description rdf:ID="rec2">
 <rdf:type rdf:resource="http://recipes.org/#recipe"/>
  <rec:title>Ricotta Pie</rec:title>
  <rec:ingredient rdf:resource="http://food.org/ingredient/#ingredient"/>
  <ing:ingredient ing:name="filing">
   <ing:ingredient ing:name="ricotta cheese" ing:amount="3" ing:unit="pound"/>
        <ing:ingredient ing:name="eggs" ing:amount="12"/>
        <ing:ingredient ing:name="white sugar" ing:amount="2" ing:unit="cup"/>
        <ing:ingredient ing:name="vanilla extract" ing:amount="2" ing:unit="teaspoon"/>
        <ing:ingredient ing:name="semisweet chocolate chips" ing:amount="0.25" ing:unit="cup"/>
   <rec:preparation rdf:parseType="Literal">
    <rec:step>Beat the 12 eggs, 2 cups sugar and vanilla extract together. Stir in
          the ricotta cheese and the chocolate chips. Set aside.</rec:step>
     </rec:preparation>
  </ing:ingredient>
 </rdf:Description>
   

</rdf:RDF>
为何parse不过……
thx


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
46.875ms