XML : unable to parse the Xml data in javascript cloud code(parse.com)

i am trying to parse the xml data using sax parser and xml reader i am unable to parse it please help me out. sax parser used :

https://github.com/isaacs/sax-js/

and xmlreader used:

https://github.com/SamDecrock/node-xmlreader

and sample data is

  <DirectionsResponse>   <status>OK</status>   <route>    <summary>Rd Number 13</summary>    <leg>     <step>      <travel_mode>DRIVING</travel_mode>      <start_location>       <lat>17.3657695</lat>       <lng>78.5504958</lng>      </start_location>      <end_location>       <lat>17.3657695</lat>       <lng>78.5504958</lng>      </end_location>      <polyline>       <points>aw~hBs{l~M</points>      </polyline>      <duration>       <value>0</value>       <text>1 min</text>      </duration>      <html_instructions>Head on &lt;b&gt;Rd Number 13&lt;/b&gt;</html_instructions>      <distance>       <value>0</value>       <text>1 m</text>      </distance>     </step>     </leg>     </route>     </DirectionsResponse>    

No comments:

Post a Comment