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 6842017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:02:44+00:00 2026-05-27T00:02:44+00:00

Xml response is like , but in one tag , the text is this:

  • 0

Xml response is like , but in one tag , the text is this:

<Description>
    &lt;center&gt;&lt;strong&gt;&lt;span&gt;Warehouse / Building Maintenance&lt;/span&gt;&lt;/strong&gt;&lt;/center&gt;&lt;br /&gt;
    &lt;br /&gt;
    &lt;strong&gt;&lt;span&gt;I&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;mmediate openings available in the local Perris area for warehouse/building building maintenance positions. &lt;br /&gt;
    &lt;br /&gt;
    &lt;strong&gt;Job Description:&lt;/strong&gt;&lt;br /&gt;
    &lt;/span&gt;
    &lt;ul&gt;
        &lt;li&gt;&lt;span&gt;Associates will be responsible to define pieces of equipment that will paralyze operations if they fail, and plan whatever level of preventative maintenance necessary. &lt;br /&gt;
        &lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span&gt
......
similar text
......
</Description>

I can’t able to parse it in proper way.

I tried using Jsoup.parse((nodeValue))

and Html.fromHtml(String) also URLEncoder.encode(String)

but its returning simple & symbol thats it.

How to parse this type of response?

  • 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-27T00:02:45+00:00Added an answer on May 27, 2026 at 12:02 am

    Actually its returning only & symbol , that’s because the nodelist item returns only single value.

    After using like this:

    NodeList fstNm = fstNmElmnt.getChildNodes();
    
                        System.out.println("nodefstnm"+fstNm.getLength());
    
                        for(int j=0;j<fstNm.getLength();j++) {
                           String val = ((Node) fstNm.item(j)).getNodeValue();
                           nodeValue=nodeValue.concat(val);
                        }
    

    and then parsing with Jsoup., returns what I want.

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

Sidebar

Related Questions

My HttpHandler looks like: public void ProcessRequest(HttpContext context) { context.Response.ContentType = text/xml; XmlWriter writer
i need to parse this php xml response in android: <?phpxml version=1.0 encoding=utf-8?> <SmsResponse>
I've used xml type by writing (asp coding) Response.ContentType = text/xml Now xml contents
My XML file looks something like this: <MyXml> <Version> 9.3.2 </Version> <Resources> <Sets> <ItemCollection>
This seems like it should be simple, but maybe I'm missing something. I just
I'm using XSLT to transform from one format of XML into another but I
Here is my XML Response: <DIDL-Lite xmlns=urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/ xmlns:dc=http://purl.org/dc/elements/1.1/ xmlns:upnp=urn:schemas-upnp-org:metadata-1-0/upnp/ <item id=1182 parentID=40 restricted=1> <title>Hot
`I am working with an API that sends back an XML response upon request.
I am trying to populate a variable with an XML response from an ajax
Let's say on ajax success the function: xmlParser(xml) is called and the XML response

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.