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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:12:37+00:00 2026-06-09T02:12:37+00:00

I’m dealing with a lot of .xml files. (Millions – an .xml formatted dump

  • 0

I’m dealing with a lot of .xml files. (Millions – an .xml formatted dump of Wikipedia) and they’re a lot more unreadable than I imagined.

For the time being, I’ve written a .css file to display them in a readable manner in a browser, and wrote a script to plug a reference to this .css into all the files.

(I know there’s other solutions, like XSLT – but all the information I found made it seem document-level which didn’t suit – I’m really trying not to expand the size of these files if possible)

The .css works fine for some of the files, but many contain entities like &nbsp and I get errors like:

“XML Parsing Error: undefined entity” with a nice little illustration pointing to &nbsp or it’s kin within a quote.

There is an articles.dtd file, which seems like it should connect the dots ( keyword -> Unicode ) for the browser. It is referenced in each file like:

 <!DOCTYPE article SYSTEM "../article.dtd">

and contains a lot of entries like:

<!ENTITY nbsp   "&#160;"> <!-- no-break space = non-breaking space,
                              U+00A0 ISOnum -->

but either I’m entirely misunderstanding what this file is for, or it’s not working correctly.

In any case; How can I make these documents display; Either by:

  • displaying the entities (like “&nbSp” as plain-text)
  • removing the entities altogether (by any means other than just a linear search/removal of them in the actual files)
  • Interpreting the entities as unicode, as they were intended

Naturally, the latter being preferable; absolutely ideally, by referencing some sort of external file that maps identities to Unicode (if that’s not what the articles.dtd file is for….)

EDIT: I’m not working with a powerful machine here.. extracting the .rars took days. Any sort of edits to each file would take a very long time.

  • 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-09T02:12:39+00:00Added an answer on June 9, 2026 at 2:12 am

    so I’ve since solved my problem: if it helps anyone in future:

    It turned out the guts of my problem was that external .dtd files are totally deprecated.

    The function of the .dtd was in fact to declare the entities I was having trouble with(  etc) as I thought; but because external .dtd files are not supported by browsers any more (the browsers simply don’t fetch/parse them – and the only way to force them to depends on files in the install of the browser on the client-machine) the entities went undeclared.

    I had sourced an .XML collection that was simply too old to be up to standards; without realizing it.

    The solution best for my circumstances turned out to be lazy-processing of each file as it was requested. with a simple flag to differentiate processed from not.

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

Sidebar

Related Questions

In my XML file chapters tag has more chapter tag.i need to display chapters
I have a bunch of posts stored in text files formatted in yaml/textile (from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
I'm parsing an XML file, the creators of it stuck in a bunch social
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.