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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:16:21+00:00 2026-05-26T09:16:21+00:00

My script returns this xml data from my method: <?xml version=’1.0′ encoding=’utf-8′?><rows><page>1</page><total>1</total><records>1</records><row id=’12’><cell>tyutyu</cell></row><row id=’11’><cell>yutyyut</cell></row><row

  • 0

My script returns this xml data from my method:

<?xml version='1.0' encoding='utf-8'?><rows><page>1</page><total>1</total><records>1</records><row id='12'><cell>tyutyu</cell></row><row id='11'><cell>yutyyut</cell></row><row id='10'><cell>sdfsdsdf</cell></row><row id='9'><cell>taepsh</cell></row><row id='8'><cell>ffhfghfgfg</cell></row><row id='7'><cell>ytutytytyu</cell></row><row id='6'><cell>yuyttyuty</cell></row><row id='5'><cell>Jaggu Jamfad </cell></row></rows>

However, when I see in response in Firebug I see HTML mixed up with my xml data.

I am using WP MVC which is a MVC framework for WordPress. How can I solve this issue and tell wordpress to only send just xml data. Currently it is sending HTML along with menus and all sort of stuff probably because my action method is in Admin section.

OK. Now here is my html:

<script type="text/javascript">
    $(document).ready(function(){
        $("#list").jqGrid({
            url:'someurl.php',
            datatype: 'xml',
            mtype: 'POST',
            colNames:['ID'],
            colModel :[ 
                {name:'ID', index:'ID', width:655}, 
            ],
            pager: '#pager',
            rowNum:10,
            rowList:[10,20,30],
            sortname: 'ID',
            sortorder: 'desc',
            viewrecords: true,
            caption: 'Beats'

        }); 
    });
</script>

<table id="list"><tr><td/></tr></table> 
<div id="pager"></div> 

Canybody spot the mistake? I have wasted complete 1 hour behind this issue.

Thanks in advance 🙂

  • 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-26T09:16:21+00:00Added an answer on May 26, 2026 at 9:16 am

    I want just confirm you that your problem is only that the ‘someurl.php’ returns the HTML data instead of pure XML data. I don’t use WP MVC myself so can’t help you in the subject.

    How you can see from the demo, if your server would return pure XML data, the grid will do display the expected contain.

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

Sidebar

Related Questions

I have a PHP script that reads in data from an XML file, returns
New to jQuery, I have a script that returns data from an XML file.
Below is my JavaProcess.mxml <?xml version=1.0 encoding=utf-8?> <s:WindowedApplication xmlns:fx=http://ns.adobe.com/mxml/2009 xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 creationComplete=windowedapplication1_creationCompleteHandler(event)>
I need an script that can fetch data from a link like this: http://itunes.apple.com/app/monopoly/id337021781
This has me stumped. The follow code returns ,,,,,,: <script type=text/javascript> $(function() { $('#listB').sortable({
I'm using a Greasemonkey script to pull data from the RSS feed http://www.instapaper.com/folder/48337/rss/11185/QBV0RZfH4KBO7GwgrR3D8b7sv90 and
So, this Perl script: http://hacheck.tel.fer.hr/xml.pl will return a XML result based on the POST
I have written a script which is fetching data from database. Now I want
This code basically fetches data from database and display it in a list along
I am trying to request xml data from a e-commerce API in ASP classic

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.