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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:03:52+00:00 2026-06-04T07:03:52+00:00

in a new project, I want to generate an XML file with PHP (I’ve

  • 0

in a new project, I want to generate an XML file with PHP (I’ve done this one a lot of times) but now I’m facing a very weird problem, IE doesn’t display the XML correctly but in an old project’s directory, the XML displays correctly, but in the new project’s directory it don’t display the XML. The code is:

header('Content-Type: text/xml');
echo '<root><foo a="b">Tada</foo></root>';

In the old project’s directory, this program displays:

<?xml version="1.0"?>
-<root>
    <foo a="b">Tada</foo>
</root>

But in the new project’s directory it only displays:

Tada

If I see the source code of the page, in both directories it shows:

<root><foo a="b">Tada</foo></root>

In Firefox I have no problem. Any idea of what is happening? Thanks in advance.

Marco.

  • 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-04T07:03:54+00:00Added an answer on June 4, 2026 at 7:03 am

    I hope this can be helpul for someone with the same problem:

    I’m using PSPad editor to create the PHP files and if in the Options is marked Ident. bytes in UTF-8 coding the program generates some characters at the beginning of the file and therefore the XML file is malformed. Thanks to all for the comments.

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

Sidebar

Related Questions

i want to use stripes in our new project. This will take care of
I want to generate xml file from Struts action object. So that I have
i am new to android development and i am now developing a project. This
I'm working on a new project where I want to use Phil Haack Areas
I'm setting up a new project and I want to choose a license that
I've been bored lately and I want to start a new project. I was
I want to try CMake to manage a new C++ project. However, some files
Starting a new rails project and we have a well-thought-out color palette, and want
I've recently started my new private project. The main goal which I want to
I want to add a new filter to the Project Explorer, to hide from

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.