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

The Archive Base Latest Questions

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

I am trying to understand how to use external entities, but I am missing

  • 0

I am trying to understand how to use external entities, but I am missing something.

I have a first file, test_entity.xml

<?xml version="1.0" encoding="UTF-8" ?>
<test>
    <test_1>Inside</test_1>
</test>

And a second file test_entity2.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE root [
    <!ENTITY test_entity SYSTEM "/Users/username/test_entity.xml">  
    <!ENTITY test_string "This is a test">
]>
<root>
    <tmp id="1">&test_entity;</tmp>
    <tmp id="2">&test_string;</tmp>
</root>

Here I am trying to embed test_entity.xml content into test_entity2.xml but the ouput looks like this :

<root>
    <tmp id="1"/>
    <tmp id="2">This is a test</tmp>
</root>

What am I missing ?

Update

I am displaying test_entity2.xml through firefox and chrome

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

    What you are doing is valid XML and will work with XML parsers that adhere to the specs and are not hobbled by security restrictions.

    Try viewing the XML in IE. Some browsers(like FireFox and Chrome) have very strict security settings and will not load files entity references and XSLT processing instructions that reference files on the filesystm.

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

Sidebar

Related Questions

I am trying to understand my embedded Linux application's memory use. The /proc/pid/maps utility/file
I am trying to understand how to use blocks on iOS. I have read
Trying to understand the use of verifySet etc... but unless I do a workaround
I am learning Django and I am trying to understand the use of models.py
I'm trying to understand when to use self.method_name vs. when to use Classname.method_name. In
I'm trying to understand how to use firebug to debug my Javascript. So I
I am trying to understand how to use instance variable in Perl OO -
I am trying to understand how to use reference parameters. There are several examples
I am trying to better understand when I should and should not use Iterators.
Trying to understand the options for will_paginate's paginate method: :page — REQUIRED, but defaults

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.