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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:17:08+00:00 2026-06-01T07:17:08+00:00

I am using YQL and the results are being returned in XML, I have

  • 0

I am using YQL and the results are being returned in XML, I have not opted for Json, this Time since I need to emit the exact html under the Results tag of YQL.
So i give a call to $.Ajax and get the xml and find the “results” node in the xml.

when i do an alert or appending to a div or a body of html, somehow it seems the whole of Div’s and Table’s and Td’s and Tr’s are getting ripped before rendering.
I did an alert still didn’t see the full raw html.

 $("#result").html("<i>Loading...</i>");
            $.ajax({
                type: "GET",
                url: yql,
                dataType: "xml",
                success: function (xml) {
                    info = $(xml).find('results');
                    alert(info.text());
                    $("body").html(info.text());
                }

What am i missing over here.
CDATA for covering html inside xml is not an option over here, just trying to render what is being served from YQL.

Thanks

  • 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-06-01T07:17:10+00:00Added an answer on June 1, 2026 at 7:17 am

    I just ran into this problem, and dug up a couple of solutions. The first and easiest would be to do this:

    $("#result").html("<i>Loading...</i>");
            $.ajax({
                type: "GET",
                url: yql,
                dataType: "html",
                success: function (xml) {
                    info = $(xml).find('results').html();
                    alert(info);
                    $("body").html(info);
                }
    

    You can find that here (check in the response to the answer): How to use jquery get content with tags in xml

    The second solution that worked for me was best explained here: Getting HTML from XML with JavaScript/jQuery

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

Sidebar

Related Questions

I'm trying to iterate through some JSON results from the YQL geo.places table using
As I can parse this query YQL using Jquery. I can not see the
I have an application using a YQL query to convert results to jsonp format.
Currently, I can get stock quote by returning xml and json using YQL console
i am trying to get access to whitepages using YQL. Unfortunately i don't have
I'm using YQL to parse some web feeds, this one in particular. SELECT *
I am using this code to try to get json data from many json
I'm using this to retrieve RSS news feeds from Yahoo (JSON): select * from
so I'm using YQL to get a youtube user's subscriber count. to do this
I'm parsing a JSON object (from YQL) that includes some null values, like this:

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.