Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7636727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:45:27+00:00 2026-05-31T07:45:27+00:00

I am using SAX Parser to parse XML data from a http url. I

  • 0

I am using SAX Parser to parse XML data from a http url.
I am creating a BlackBerry application, that shows direction data from a location to another location.

My application parsed data for some locations very accurately but for some locations it gives me org.xml.sax.SAXParseException: End tag does not match start tag ‘meta’.

when i traced my application then i came to know that data which is coming from http url is not correct, although url contains correct xml data

The XML data I am parsing:

<?xml version="1.0" encoding="UTF-8"?> 
<DirectionsResponse> 
 <status>OK</status> 
 <route> 
  <summary>I-65 N and AL-14 W</summary> 
  <leg> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4582500</lat> 
     <lng>-86.3841000</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4582300</lat> 
     <lng>-86.3832400</lng> 
    </end_location> 
    <polyline> 
     <points>aobeEr{fnOJyCGQ</points> 
     <levels>B?B</levels> 
    </polyline> 
    <duration> 
     <value>8</value> 
     <text>1 min</text> 
    </duration> 
    <html_instructions>Head &lt;b&gt;east&lt;/b&gt; on &lt;b&gt;Market St&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>81</value> 
     <text>266 ft</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4582300</lat> 
     <lng>-86.3832400</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4602500</lat> 
     <lng>-86.3831700</lng> 
    </end_location> 
    <polyline> 
     <points>}nbeEfvfnOsKM</points> 
     <levels>BB</levels> 
    </polyline> 
    <duration> 
     <value>25</value> 
     <text>1 min</text> 
    </duration> 
    <html_instructions>Turn &lt;b&gt;left&lt;/b&gt; to stay on &lt;b&gt;Market St&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>226</value> 
     <text>0.1 mi</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4602500</lat> 
     <lng>-86.3831700</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4603600</lat> 
     <lng>-86.3870500</lng> 
    </end_location> 
    <polyline> 
     <points>q{beExufnOUfW</points> 
     <levels>BB</levels> 
    </polyline> 
    <duration> 
     <value>61</value> 
     <text>1 min</text> 
    </duration> 
    <html_instructions>Turn &lt;b&gt;left&lt;/b&gt; onto &lt;b&gt;Cobbs Ford Rd/Co Rd 2&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>364</value> 
     <text>0.2 mi</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4603600</lat> 
     <lng>-86.3870500</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4865600</lat> 
     <lng>-86.4070600</lng> 
    </end_location> 
    <polyline> 
     <points>g|beE`ngnOwBfDeExEcCjA{s@z`@mVlOoRdN{t@bl@</points> 
     <levels>B?@??@?B</levels> 
    </polyline> 
    <duration> 
     <value>130</value> 
     <text>2 mins</text> 
    </duration> 
    <html_instructions>Slight &lt;b&gt;right&lt;/b&gt; to merge onto &lt;b&gt;I-65 N&lt;/b&gt; toward &lt;b&gt;Birmingham&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>3478</value> 
     <text>2.2 mi</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4865600</lat> 
     <lng>-86.4070600</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4893200</lat> 
     <lng>-86.4084500</lng> 
    </end_location> 
    <polyline> 
     <points>_`heEbkknOeDbBwGvBiBx@</points> 
     <levels>B??B</levels> 
    </polyline> 
    <duration> 
     <value>27</value> 
     <text>1 min</text> 
    </duration> 
    <html_instructions>Take exit &lt;b&gt;181&lt;/b&gt; for &lt;b&gt;AL-14&lt;/b&gt; toward &lt;b&gt;Prattville/Wetumpka&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>333</value> 
     <text>0.2 mi</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4893200</lat> 
     <lng>-86.4084500</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4823000</lat> 
     <lng>-86.4286600</lng> 
    </end_location> 
    <polyline> 
     <points>gqheExsknO~PvPpAhAVNJCnDbFjDvGnA`DnAnErA`I^fHtAbz@</points> 
     <levels>B???@???@??B</levels> 
    </polyline> 
    <duration> 
     <value>228</value> 
     <text>4 mins</text> 
    </duration> 
    <html_instructions>Turn &lt;b&gt;left&lt;/b&gt; onto &lt;b&gt;AL-14 W&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>2186</value> 
     <text>1.4 mi</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4823000</lat> 
     <lng>-86.4286600</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4755400</lat> 
     <lng>-86.4283300</lng> 
    </end_location> 
    <polyline> 
     <points>kegeEbronO~XJtDU~Di@pCM</points> 
     <levels>B???B</levels> 
    </polyline> 
    <duration> 
     <value>68</value> 
     <text>1 min</text> 
    </duration> 
    <html_instructions>Turn &lt;b&gt;left&lt;/b&gt; onto &lt;b&gt;Jasmine Trail&lt;/b&gt;</html_instructions> 
    <distance> 
     <value>755</value> 
     <text>0.5 mi</text> 
    </distance> 
   </step> 
   <step> 
    <travel_mode>DRIVING</travel_mode> 
    <start_location> 
     <lat>32.4755400</lat> 
     <lng>-86.4283300</lng> 
    </start_location> 
    <end_location> 
     <lat>32.4755400</lat> 
     <lng>-86.4288500</lng> 
    </end_location> 
    <polyline> 
     <points>c{eeE`ponO?fB</points> 
     <levels>BB</levels> 
    </polyline> 
    <duration> 
     <value>11</value> 
     <text>1 min</text> 
    </duration> 
    <html_instructions>Turn &lt;b&gt;right&lt;/b&gt; onto &lt;b&gt;Windermere Ave&lt;/b&gt;&lt;div style=&quot;font-size:0.9em&quot;&gt;Destination will be on the left&lt;/div&gt;</html_instructions> 
    <distance> 
     <value>49</value> 
     <text>161 ft</text> 
    </distance> 
   </step> 
   <duration> 
    <value>558</value> 
    <text>9 mins</text> 
   </duration> 
   <distance> 
    <value>7472</value> 
    <text>4.6 mi</text> 
   </distance> 
   <start_location> 
    <lat>32.4582500</lat> 
    <lng>-86.3841000</lng> 
   </start_location> 
   <end_location> 
    <lat>32.4755400</lat> 
    <lng>-86.4288500</lng> 
   </end_location> 
   <start_address>I65 Srv Rd E, Millbrook, AL 36054, USA</start_address> 
   <end_address>Prattville, AL 36066, USA</end_address> 
  </leg> 
  <copyrights>Map data ©2011 Google</copyrights> 
  <overview_polyline> 
   <points>aobeEr{fnOJyCGSsKKUfWwBfDeExEcCjA{s@z`@uNxIkNjJ{JlH{t@bl@eDbBwGvBiBx@~PvPpAhAVNJCnDbFjDvGnA`DnAnErA`I^fHtAbz@~XJtDU~Di@pCM?fB</points> 
   <levels>B?@@@?@??@??@??A???@???@??@???@B</levels> 
  </overview_polyline> 
  <bounds> 
   <southwest> 
    <lat>32.4581900</lat> 
    <lng>-86.4288500</lng> 
   </southwest> 
   <northeast> 
    <lat>32.4893200</lat> 
    <lng>-86.3831700</lng> 
   </northeast> 
  </bounds> 
 </route> 
</DirectionsResponse> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T07:45:29+00:00Added an answer on May 31, 2026 at 7:45 am

    Can you show me the URL which returns this XML data? it may be possible that this problem can be of URL creation. i have used all these information in a app and i found that my problem was URL not parser.

    You might be have the same problem so just use ‘+’ instead of space. and let me know if it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I trying to parse xml from an inputstream using the sax parser. The inputstream
I have a problem with using the SAX parser to parse a XML file.
I am using SAX Parser to parse the XML file over the network. While
I have to parse a XML structure in JAVA using the SAX parser. The
I am trying to parse XML in Perl using XML::SAX parser . My query
I am using SAX to parse an XML file I'm pulling from the web.
I am using SAX to parse XML files. Let's suppose that I want my
When i try to read the xml from java using SAX parser, it is
I'm trying to parse some relative large xml-files using the standard sax parser in
I am using SAX parser to parse a XML response but it throws an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.