<?php
require_once 'JSON.php';
require_once 'util.php';
$json = new Services_JSON();
$bookreviewsUrl = 'http://api.douban.com/book/subject/isbn/';
$requestEnd = '?apikey=*=json';

$popularbookreviews = get_post_custom_values('ISBN');
?>
 
 <?php error_reporting(0); 
 foreach ($popularbookreviews as $bookreviews) {
  $contents = file_get_contents($bookreviewsUrl.$bookreviews.$requestEnd);
  $value = $json->decode($contents);
  $contents = get_object_vars_final($value); ?>
 
 <?php
  }
 ?>L 文件并未包含任何关联的样式信息。文档树显示如下。
      

<entry>
<id>http://api.douban.com/book/subject/3260924</id>
<title>中国美术学院精品课程.创意素描</title>
<category scheme="http://www.douban.com/2007#kind" term="http://www.douban.com/2007#book"/>

<author>
<name>薛峰 曹立伟</name>
</author>
<link href="http://api.douban.com/book/subject/3260924" rel="self"/>
<link href="http://book.douban.com/subject/3260924/" rel="alternate"/>
<link href="http://img3.douban.com/spic/s3475721.jpg" rel="image"/>

<summary>
创意素描与传统素描的区别是:前者探询主观性而后者是重塑客观;前者探索“未知”,后者是再现“所见”;前者是通过对形体的变异、并置、错位、重叠、嫁接等方式以获得虚拟境界,也就是艺术境界,后者是对形体的比例、透视、体积、空间、光线等进行塑造。 开设创意素描课程的目的在于开发学生的创造意识,通过学习获得归纳的方法。 创意素描是通过课题进行教学的,课程中不安排模特儿等可以“看”的物象,而是通过课题和图片解析让学生了解课题相应的要求。作业的过程是从构思、小稿、讲评、草稿、讲评、正稿这么一个流程进行的,然后汇总。
</summary>
<db:attribute name="isbn10">7539424060</db:attribute>
<db:attribute name="isbn13">9787539424064</db:attribute>
<db:attribute name="title">中国美术学院精品课程.创意素描</db:attribute>
<db:attribute name="pages">111</db:attribute>
<db:attribute name="author">薛峰 曹立伟</db:attribute>
<db:attribute name="price">45.0</db:attribute>
<db:attribute name="publisher">湖北美术出版社</db:attribute>
<db:attribute name="binding">平装</db:attribute>
<db:attribute name="pubdate">2008-9-1</db:attribute>
<gd:rating average="0" max="10" min="0" numRaters="0"/>
</entry>请问用上面的php代码如何取到db:attribute 的name值并替换成中文呢?谢谢