0

I have a problem here. I want to test my parser result.

I have a KML document from request to Google Maps. here is my KML document:

<Placemark>
<name>Head north on Jalan Kebagusan Raya toward Jalan Anggrek</name>
<description><![CDATA[go 850&#160;m]]></description>
<address>Jalan Kebagusan Raya</address>
....
....
....
</Placemark>

I wanna to save a tag <name> to my variable. Can you help me to solve my problems? It's easy to save a string, int, or even double from parsing result. But to save a sentences like "Head north on Jalan Kebagusan Raya toward Jalan Anggrek".

2
  • Why can't you save the sentence as a string?? Commented May 16, 2012 at 9:13
  • if i save it to string, it makes difficult to split it with delimiter like (" ") or ("-") Commented May 16, 2012 at 9:37

1 Answer 1

1

Here is the Example Link for the same

https://github.com/frogermcs/RoutePathExample

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.