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

  • Home
  • SEARCH
  • 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 937625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:30:30+00:00 2026-05-15T21:30:30+00:00

Working on an API but I’ve run into a problem. This specific part of

  • 0

Working on an API but I’ve run into a problem.

This specific part of the response (in XML) returns a URL. Here’s the error I’m getting:

XML Parsing Error: not well-formed

<item_to_page_url>http://cnn.com/.../?hpt=C2&replytocom=11119#respond</item_to_page_url>

First off, I added an ellipses to shorten the length of that for viewing purposes here on the forum. Now, The error tracker line thing, that I didn’t include above, points to the second equals = character in that URL.

So. I can’t help that this URL is showing up in the XML response. Is there some sort of workaround? Surely there’s some way to tell XML that it’s CONTENT, not <tags> and make it ignore this..

Thanks

–EDIT for comment below —

<item_to_page_title><![CDATA[Breaking news, real-time scores and daily analysis from Sports Illustrated  SI.com]]></item_to_page_title>

same error as before, different label, different character.

  • 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-15T21:30:31+00:00Added an answer on May 15, 2026 at 9:30 pm

    Surely there’s some way to tell XML that it’s CONTENT, not and make it ignore this..

    There is indeed. CDATA tags will make the XML parser ignore content contained within them.

    <item_to_page_url><![CDATA[http://cnn.com/.../?hpt=C2&replytocom=11119#respond]]></item_to_page_url>

    However, if you don’t want the parser to completely ignore the content, you can just escape it. The error you’re receiving is actually not caused by the equals sign, it is caused by the amperstand before it – amperstands must be escaped in xml as &amp;

    <item_to_page_url>http://cnn.com/.../?hpt=C2&amp;replytocom=11119#respond</item_to_page_url>
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

`I am working with an API that sends back an XML response upon request.
I'm currently working on a project (that's almost done :D) but I've run into
I am using FbGraph API for facebook integration. Everything is working fine, but the
I'm working with an API that returns some information about audio streams in a
Working with an API that spits out the contents in p tags ... but
We are trying to get part of a API Working and we are getting
I am working Calendar API (Java). My specific requirement is I want to add
I'm working this API and there is a factory method that sets the current
Working with Paypal API is the worst experience so far for me as a
I am working with an API for a payment gateway that does a callback

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.