Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 12th, 2012  |  syntax: None  |  size: 1.20 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Using XPath with Java encoded object
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <java version="1.5.0_22" class="java.beans.XMLDecoder">
  4.     <object class="com.h2h.data.User">
  5.         <void property="city">
  6.             <string>mtl</string>
  7.         </void>
  8.         <void property="companyName">
  9.             <string>ABC INC</string>
  10.         </void>
  11.         <void property="contactName">
  12.             <string>FRED</string>
  13.         </void>
  14.         <void property="country">
  15.             <string>US</string>
  16.         </void>
  17.         <void property="dateCreated">
  18.             <object class="java.util.Date">
  19.                 <long>1342276888461</long>
  20.             </object>
  21.         </void>
  22.         <void property="email">
  23.             <string>fred@y.com</string>
  24.         </void>
  25.         <void property="phone">
  26.             <string>514-999-8888</string>
  27.         </void>
  28.         <void property="postalCode">
  29.             <string>12345</string>
  30.         </void>
  31.         <void property="state">
  32.             <string>AK</string>
  33.         </void>
  34.         <void property="street1">
  35.             <string>123 Sesame Street</string>
  36.         </void>
  37.         <void property="street2">
  38.             <string>App 1</string>
  39.         </void>
  40.     </object>
  41. </java>