<db:attribute name="isbn10">7115153167</db:attribute> 
  <db:attribute name="isbn13">9787115153166</db:attribute> 
  <db:attribute name="translator">陈剑瓯</db:attribute> 
  <db:attribute name="publisher">人民邮电出版社</db:attribute> 
  <db:attribute name="author">Andy Budd</db:attribute> 
  <db:attribute name="price">39</db:attribute> 
  <db:attribute name="pubdate">2006-11-1</db:attribute> 
  <gd:rating average="8.4" max="10" min="0" numRaters="692" /> 
取节点文本,SimpleXML?

解决方案 »

  1.   

    http://topic.csdn.net/u/20100715/09/ed0afbf5-6f1e-4e19-a000-037a5de2122f.html
      

  2.   

    随便哪个xml库都可以处理啊,你要等哪个?
      

  3.   

    不明白怎么个取法,关键是<db:attribute></db:attribute>这个怎么读?
      

  4.   

    深入了解一下DOM原理,解决起来蛮简单的,就是用attributes()foreach($xml->attribute as $value){           if($value->attributes() == 'price'){
               echo "价格: <span>".$value."</span>,";
             } 
               .....
    }自己解决了,依然回者有分,嘿嘿