Advertisement
Viper007Bond

Untitled

Jun 27th, 2011
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.38 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4.  
  5. <atom:entry xmlns:atom='http://www.w3.org/2005/Atom' xmlns:gd='http://schemas.google.com/g/2005'>
  6.     <atom:category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/contact/2008#contact' />
  7.     <gd:name>
  8.         <gd:givenName>Elizabeth</gd:givenName>
  9.         <gd:familyName>Bennet</gd:familyName>
  10.         <gd:fullName>Elizabeth Bennet</gd:fullName>
  11.     </gd:name>
  12.     <atom:content type='text'>Notes</atom:content>
  13.     <gd:email rel='http://schemas.google.com/g/2005#work' primary='true' address='liz@gmail.com' displayName='E. Bennet' />
  14.     <gd:email rel='http://schemas.google.com/g/2005#home' address='liz@example.org' />
  15.     <gd:phoneNumber rel='http://schemas.google.com/g/2005#work' primary='true'>
  16.         (206)555-1212
  17.     </gd:phoneNumber>
  18.     <gd:phoneNumber rel='http://schemas.google.com/g/2005#home'>
  19.         (206)555-1213
  20.     </gd:phoneNumber>
  21.     <gd:im address='liz@gmail.com' protocol='http://schemas.google.com/g/2005#GOOGLE_TALK' primary='true' rel='http://schemas.google.com/g/2005#home' />
  22.     <gd:structuredPostalAddress rel='http://schemas.google.com/g/2005#work' primary='true'>
  23.         <gd:city>Mountain View</gd:city>
  24.         <gd:street>1600 Amphitheatre Pkwy</gd:street>
  25.         <gd:region>CA</gd:region>
  26.         <gd:postcode>94043</gd:postcode>
  27.         <gd:country>United States</gd:country>
  28.         <gd:formattedAddress>
  29.             1600 Amphitheatre Pkwy Mountain View
  30.         </gd:formattedAddress>
  31.     </gd:structuredPostalAddress>
  32. </atom:entry>
  33.  
  34. */
  35.  
  36. $data = array(
  37.     'atom:entry' => array(
  38.         '_attributes' => array(
  39.             'xmlns:atom' => 'http://www.w3.org/2005/Atom',
  40.             'xmlns:gd' => 'http://schemas.google.com/g/2005',
  41.         ),
  42.         'atom:category' => array(
  43.             '_attributes' => array(
  44.                 'scheme' => 'http://schemas.google.com/g/2005#kind',
  45.                 'term' => 'http://schemas.google.com/contact/2008#contact',
  46.         ),
  47.         'gd:name' => array(
  48.             'gd:givenName' => array(
  49.                 '_value' => 'Elizabeth',
  50.             ),
  51.             'gd:familyName' => array(
  52.                 '_value' => 'Bennet',
  53.             ),
  54.             'gd:fullName' => array(
  55.                 '_value' => 'Elizabeth Bennet',
  56.             ),
  57.         ),
  58.         'atom:content' => array(
  59.             '_attributes' => array(
  60.                 'type' => 'text',
  61.             ),
  62.             '_value' => 'Notes',
  63.         ),
  64.         'gd:email' => array(
  65.             '_attributes' => array(
  66.                 'rel' => 'http://schemas.google.com/g/2005#work',
  67.                 'primary' => 'true',
  68.                 'address' => 'liz@gmail.com',
  69.                 'displayName' => 'E. Bennet',
  70.             ),
  71.         ),
  72.         'gd:email' => array(
  73.  
  74. // Oh, you can't have duplicate keys... :(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement