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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T23:09:16+00:00 2026-06-09T23:09:16+00:00

I want to generate an xml page in php but I found the problem

  • 0

I want to generate an xml page in php but I found the problem at decoding / encoding special characters for example ""é""

myCode :

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
 <url>
    <loc> &eacute; test &egrave; </loc>
    <priority>1.000</priority>
    <changefreq>always</changefreq>
 </url>
</urlset>

but i get this message

This page contains the following errors:

error on line 4 at column 19: Entity 'eacute' not defined
Below is a rendering of the page up to the first error.
  • 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-09T23:09:17+00:00Added an answer on June 9, 2026 at 11:09 pm

    The ampersand character (&) and the left angle bracket (<) must not
    appear in their literal form, except when used as markup delimiters,
    or within a comment, a processing instruction, or a CDATA section.

    (Reference)

    Use this instead

    <loc>&amp;eacute; test &amp;egrave;</loc>
    

    The & must be encoded as &amp;


    OR use it within a CData section. It says that the following text isn’t markup, but it character data instead.

    <loc><![CDATA[&eacute; test &egrave;]]></loc>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to generate XML from existing xml but values should come from some
in a new project, I want to generate an XML file with PHP (I've
I want to generate the xml file that holds its schema as well as
I asked this question before: Generate XML from a class I want to do
I've a file with xml data. And I want to generate a report out
I want to create an XSD which can generate the following XML. <note> <email:to>abc@def.com</email:to>
I want to generate random integers between 0-9 (inclusive on both ends), but I
The PHP page of Soap Server (I've seen it): http://www.php.net/manual/en/soapserver.soapserver.php But I'm missing an
I want to develop a web application with a master page containing an <asp:Xml
System.Xml.XmlDocument.OuterXml() will generate (for example) <list id=myBooks> <book id=123 name=XML for muppets /> <book

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.