【发布时间】:2011-07-20 04:31:22
【问题描述】:
我需要帮助将以下 xml 转换为 php。谁能帮帮我?
PUT /feeds/default/private/full/resource_id/revisions/revision_number
Host: docs.google.com
GData-Version: 3.0
Authorization: <your authorization header here>
Content-Length: 722
Content-Type: application/atom+xml
<entry xmlns="http://www.w3.org/2005/Atom" xmlns:gd='http://schemas.google.com/g/2005'xmlns:docs="http://schemas.google.com/docs/2007" gd:etag="W/"DkIBR3st7ImA9WxNbF0o."">
<id>https://docs.google.com/feeds/id/resource_id/revisions/1</id>
<updated>2009-08-17T04:22:10.440Z</updated>
<app:edited xmlns:app="http://www.w3.or /2007/app">2009-08-06T03:25:07.799Z</app:edited>
<title>Revision 1</title>
<content type="text/html" src="https://docs.google.com/feeds/download/document/ Export?docId=doc_id&revision=1"/>
<link rel="alternate" type="text/html" href="https://docs.google.com/Doc?id=doc_id&revision=1"/>
<link rel="self" type="application/atom+xml" href="https://docs.google.com/feeds/default/private/full/resource_id/revisions/1"/>
<author>
<name>user</name>
<email>user@gmail.com</email>
</author>
<docs:publish value="true"/>
<docs:publishAuto value="false"/>
</entry>
【问题讨论】:
-
你想用 PHP 解析它吗?
-
我想他想用 PHP 做 PUT 请求...?
-
是的......显然,我不知道如何为
-
欢迎来到 StackOverflow! 请read the site FAQ 和this guide on how to ask good questions。您提出的问题无法回答。
-
尝试解析它或尝试使用 PHP 准备 XML put 请求是不是很“雅”?如果您尝试解析它,请发布您正在使用的代码以及您在
docs:publish节点遇到的实际问题的描述。
标签: php xml rest gdata-api google-docs