tags:

views:

54

answers:

0

I have an XML file that looks something like this (received from a web service)

 <schedule type="XUZ " fromdate="09/14/2010" thrudate="09/14/2010" bay="" vin="" mechanic=""       

   datetimestamp="09/14/2010 10:56:15">
- <date date="09/14/2010"> 
- <part id="845205" date="09/14/2010" time="08:00" date_sort="61983" time_sort="28800" duration="2:42" bay="1" 

   type="OIL" bay_sort_order="1"/>
  < vin="4004126" name="A, SP" lastname="A" firstname="SP" mi="R"   /> "
  < mid="023384" name="RIT, S" primary="TRUE" />
  <service name="THY" primary="TRUE" />
  <equipment>ELECTRIC </equipment> 

  <timestamp event=" CHECKS IN" date="09/14/2010\" time=\"06:05\" user=\"DS820\" sort=\"10\" />
  <timestamp event="READY FOR TRANSPORT\" date="09/14/2010\" time=\"07:02\" user=\"KMH11\" sort=\"20\" /> 
  <timestamp event="INTO BAY" date=\"09/14/2010" time=\"08:00\" user=\"PFC5\" sort=\"30\" /> 
  <timestamp event="READY FOR " date=\"09/14/2010" time=\"08:17\" user=\"PFC5\" sort=\"40\" /> 
  <timestamp event="FIRST begins" date=\"09/14/2010" time=\"08:20\" user=\"PFC5\" sort=\"50\" /> 
  <timestamp event="FIRS ENDS" date="09/14/2010" time=\"10:05\" user=\"PFC5\" sort=\"60\" /> 
  <timestamp event=" LEAVES " date="09/14/2010" time=\"10:42\" user=\"PFC5\" sort=\"70\" /> 
  <timestamp event="INTO XYZ" date="09/14/2010" time=\"10:43\" user=\"SD986\" sort=\"80\" /> 
       </part>

As you can see several fields don't have

How can I parse the file to extract name, vin, date?

I have tried using SAX on Android but the results are always empty.

Thanks

PS:Please ignore the \" as the \ are escapes for the " in Java.