| 1 |
<?xml-stylesheet type="text/xsl" href="xml2json.xslt"?> |
| 2 |
<!-- |
| 3 |
A test case derived from the sample XML at http://wiki.open311.org/JSON_and_XML_Conversion/ . |
| 4 |
Used for checking different JSON serialization. The original example has been fixed by |
| 5 |
incorrect default namespace declarations. |
| 6 |
--> |
| 7 |
<reports xmlns="http://www.w3.org/2005/Atom" |
| 8 |
xmlns:georss="http://www.georss.org/georss"> |
| 9 |
|
| 10 |
<entry> |
| 11 |
<id>tag:open311.sfgov.org,2010-04-15:/dev/V1/reports/637619.xml</id> |
| 12 |
<title>A large tree branch is blocking the road</title> |
| 13 |
<updated>2010-04-13T18:30:02-05:00</updated> |
| 14 |
<link rel="self" href="http://open311.sfgov.org/dev/V1/reports/637619.xml"/> |
| 15 |
<author><name>John Doe</name></author> |
| 16 |
|
| 17 |
<georss:point>40.7111 -73.9565</georss:point> |
| 18 |
|
| 19 |
<category label="Damaged tree" term="tree-damage" scheme="https://open311.sfgov.org/dev/V1/categories/006.xml">006</category> |
| 20 |
|
| 21 |
<content type="xml" xmlns="http://open311.org/spec/georeport-v1"> |
| 22 |
<report_id>637619</report_id> |
| 23 |
<address>1600 Market St, San Francisco, CA 94103</address> |
| 24 |
<description>A large tree branch is blocking the road</description> |
| 25 |
<status>created</status> |
| 26 |
<status_notes /> |
| 27 |
<policy>The City will inspect and require the responsible party to correct within 24 hours and/or issue a Correction Notice or Notice of Violation of the Public Works Code</policy> |
| 28 |
</content> |
| 29 |
|
| 30 |
</entry> |
| 31 |
|
| 32 |
<entry> |
| 33 |
<id>tag:open311.sfgov.org,2010-04-15:/dev/V1/reports/637620.xml</id> |
| 34 |
<title>A large tree branch is blocking the road</title> |
| 35 |
<updated>2010-04-13T18:30:02-05:00</updated> |
| 36 |
<link rel="self" href="http://open311.sfgov.org/dev/V1/reports/637620.xml"/> |
| 37 |
<author><name>John Doe</name></author> |
| 38 |
|
| 39 |
<georss:point>40.7111 -73.9565</georss:point> |
| 40 |
|
| 41 |
<category label="Damaged tree" term="tree-damage" scheme="https://open311.sfgov.org/dev/V1/categories/006.xml">006</category> |
| 42 |
|
| 43 |
<content type="xml" xmlns="http://open311.org/spec/georeport-v1"> |
| 44 |
<report_id>637620</report_id> |
| 45 |
<address>56 Market St, San Francisco, CA 94103</address> |
| 46 |
<description>A large tree branch is blocking the road</description> |
| 47 |
<status>created</status> |
| 48 |
<status_notes /> |
| 49 |
<policy>The City will inspect and require the responsible party to correct within 24 hours and/or issue a Correction Notice or Notice of Violation of the Public Works Code</policy> |
| 50 |
</content> |
| 51 |
|
| 52 |
</entry> |
| 53 |
|
| 54 |
<entry> |
| 55 |
<id>tag:open311.sfgov.org,2010-04-15:/dev/V1/reports/637621.xml</id> |
| 56 |
<title>A large tree branch is blocking the road</title> |
| 57 |
<updated>2010-04-13T18:30:02-05:00</updated> |
| 58 |
<link rel="self" href="http://open311.sfgov.org/dev/V1/reports/637621.xml"/> |
| 59 |
<author><name>John Doe</name></author> |
| 60 |
|
| 61 |
<georss:point>40.7111 -73.9565</georss:point> |
| 62 |
|
| 63 |
<category label="Damaged tree" term="tree-damage" scheme="https://open311.sfgov.org/dev/V1/categories/006.xml">006</category> |
| 64 |
|
| 65 |
<content type="xml" xmlns="http://open311.org/spec/georeport-v1"> |
| 66 |
<report_id>637621</report_id> |
| 67 |
<address>1800 Market St, San Francisco, CA 94103</address> |
| 68 |
<description>A large tree branch is blocking the road</description> |
| 69 |
<status>created</status> |
| 70 |
<status_notes /> |
| 71 |
<policy>The City will inspect and require the responsible party to correct within 24 hours and/or issue a Correction Notice or Notice of Violation of the Public Works Code</policy> |
| 72 |
</content> |
| 73 |
|
| 74 |
</entry> |
| 75 |
|
| 76 |
</reports> |