Fix XMLNS on tz/list

This commit is contained in:
Andrew McMillan 2011-09-19 23:51:46 +12:00
parent f9c0c86d9c
commit 7f45695b62
4 changed files with 9 additions and 9 deletions

View File

@ -11,7 +11,7 @@
require_once('vComponent.php');
$response = new XMLDocument( array("" => "urn:ietf:params:xml:ns:timezone-service") );
$response = new XMLDocument( array("urn:ietf:params:xml:ns:timezone-service" => "") );
$tzlist = $response->NewXMLElement('timezone-list');
$tzlist->NewElement('dtstamp', gmdate('Ymd\THis\Z'));

View File

@ -1,10 +1,10 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Length: 2677
Content-Length: 2596
Content-Type: application/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<urn:ietf:params:xml:ns:timezone-service:timezone-list xmlns:urn:ietf:params:xml:ns:timezone-service="">
<timezone-list xmlns="urn:ietf:params:xml:ns:timezone-service">
<dtstamp>all good</dtstamp>
<summary>
<tzid>America/Los_Angeles</tzid>
@ -78,4 +78,4 @@ Content-Type: application/xml; charset="utf-8"
<alias>America/New_York</alias>
<local-name lang="en_US">(UTC-05:00) Eastern Time (US &amp; Canada)</local-name>
</summary>
</urn:ietf:params:xml:ns:timezone-service:timezone-list>
</timezone-list>

View File

@ -1,9 +1,9 @@
HTTP/1.1 200 OK
Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Length: 239
Content-Length: 158
Content-Type: application/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<urn:ietf:params:xml:ns:timezone-service:timezone-list xmlns:urn:ietf:params:xml:ns:timezone-service="">
<timezone-list xmlns="urn:ietf:params:xml:ns:timezone-service">
<dtstamp>all good</dtstamp>
</urn:ietf:params:xml:ns:timezone-service:timezone-list>
</timezone-list>

View File

@ -3,7 +3,7 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
Content-Type: application/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<urn:ietf:params:xml:ns:timezone-service:timezone-list xmlns:urn:ietf:params:xml:ns:timezone-service="">
<timezone-list xmlns="urn:ietf:params:xml:ns:timezone-service">
<dtstamp>all good</dtstamp>
<summary>
<tzid>Africa/Abidjan</tzid>
@ -1840,4 +1840,4 @@ Content-Type: application/xml; charset="utf-8"
<last-modified>all good</last-modified>
<local-name lang="">Pacific/Wallis</local-name>
</summary>
</urn:ietf:params:xml:ns:timezone-service:timezone-list>
</timezone-list>