1

I'm having problem in parsing XML element returned by SOAP because the XML structure is like this :

    <a:journey>
    <a:infantprice>0</a:infantprice>
    ...
    </a:journey>

I have tried

.select("journey")
.select("a:journey")

But still not getting the xml value. Is it possible to select the XML segment with that format using Jsoup?

Thanks in Advance

1 Answer 1

4

I think, I got the answer for my question.

I should use :

.select("a|journey");

According to the documentation :

ns|tag: find elements by tag in a namespace, e.g. fb|name finds elements

Source : http://jsoup.org/cookbook/extracting-data/selector-syntax

Thanks

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

1 Comment

Please accept your answer (after 24 h) so others can see it's solved (blog.stackoverflow.com/2011/07/…)

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.