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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:10:13+00:00 2026-06-07T00:10:13+00:00

I wrote a simple XML file and a DTD file including an entity, but

  • 0

I wrote a simple XML file and a DTD file including an entity, but when I want to check it in my browsers I get the message:

XML parser error: entity not defined.
Address: file:///Users/Mike/Documents/fb.xml
Row 8, column 22

I tried to find an answer, most refer to an add-on problem with Firefox. I, however, get this message on Mac OS X 10.7 with Firefox, Chrome and Safari, and on Windows 7 with Firefox and Chrome. IE does nothing. (Opera on my Mac doesn’t give me a message, but it doesn’t show the text replacement either.)

Here are my files.
DTD:

<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT example (some_list) >
<!ELEMENT some_list (item+)>
<!ELEMENT item (element1, element2)>
<!ELEMENT element1 (#PCDATA) >
<!ELEMENT element2 (#PCDATA) >
<!ENTITY entity1 "1234567890" >

XML:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE some_list SYSTEM "Allgemeine_Entities.dtd">
<some_list>
    <item>
        <element1>Some Text</element1>
        <element2>more Text and &entity1;</element2>
    </item>
</some_list>

As the problem appears in all my browsers, I assume it is not a browser specific problem.

Thanks for your input.

  • 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-07T00:10:14+00:00Added an answer on June 7, 2026 at 12:10 am

    Recent browsers will mostly not load external DTDs

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

Sidebar

Related Questions

I wrote the following Perl script (below) in order to create simple XML file.
I have the following very simple XML file and I want to quickly parse
I wrote a simple function to create a hashtable out of an xml-file which
I wrote a simple file saving system. But it doesn't work. I wrote it
In simple way, I want to save some data in XML file when i
I wrote an XML RPC server in python and a simple Test Client for
We have an XML file with a very simple implementation of XLink : <root
I have a simple question about sending a file (XML file) from my webapp
I am having trouble doing a simple download of an XML file from a
I wrote a simple html file with just a javascript function. It worked in

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.