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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:21:20+00:00 2026-06-01T14:21:20+00:00

Is there any way embed XHTML entity references into XML text without the DOCTYPE

  • 0

Is there any way embed XHTML entity references into XML text without the DOCTYPE DTD declaration? The DOCTYPE line is causing problems on the java server it’s targeting.

Escaping the &; sequence isn’t acceptable, nor is embedding in CDATA. The references need to be validated.

Is is possible to reference the DTD from the schema definition instead of the XML data file.

More broadly speaking, what is the common practice for embedding XHTML (or at least entity references) in XML and having that validated?

One potential solution is to convert the entire XHTML 1.0 DTD to a schema, but this doesn’t sound like the best idea.

  • 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-01T14:21:21+00:00Added an answer on June 1, 2026 at 2:21 pm

    Have you tried a DOCTYPE without PUBLIC or SYSTEM identifiers?

    You can either add the ENTITY declarations directly to the internal subset:

    <!DOCTYPE foo [
    <!ENTITY nbsp   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY laquo  "&#171;">
    <!ENTITY reg    "&#174;">
    <!ENTITY deg    "&#176;">
    <!ENTITY plusmn "&#177;">
    <!ENTITY sup2   "&#178;">
    <!ENTITY sup3   "&#179;">
    <!ENTITY frac14 "&#188;">
    <!ENTITY frac12 "&#189;">
    <!ENTITY frac34 "&#190;">
    ]>
    <foo/>
    

    or you can use a parameter entity to point to an external file/files that have your ENTITY declarations:

    <!DOCTYPE foo [
    <!ENTITY % ents SYSTEM "xhtml-lat1.ent">
    %ents;
    ]>
    <foo/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to embed Flash completely in HTML, without reference to an
Is there any way that I could embed JFreeChart into Java Servlet with the
Is there any way in C# to embed an XML file where I serialized
is there any way to integrate/embed JasperServer into another web app? The thing is
Is there any way to embed an external web page without using an iframe?
Is there any way to embed a custom control into the flowdocument and have
Is there any way to embed a widget in a data-bound DataGridViewCell when it
im trying to echo mediaplayer embed code with IF statement. is there any way
Is there any way to check whether a file is locked without using a
Is there any way I can embed the images within my exe (as resource?)

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.