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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:55:41+00:00 2026-05-24T05:55:41+00:00

I have a dtd file which describes what columns my columns should have. The

  • 0

I have a dtd file which describes what columns my columns should have.

The problem is, it gives no info on what data type I should use for the columns, i.e whether INT, Varchar, or Text, and no info on the max length of the columns. In most places it says #PCDATA which I believe simply means mixed data.

Is there a way for me to find out what data type and max lenghts I should use, or should I simply make a table full of Varchar (255)s?

  • 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-24T05:55:42+00:00Added an answer on May 24, 2026 at 5:55 am

    SGML is (in)famously lacking a type system, so there is no mechanized way to infer the correct type for any sort of element. Note that #PCDATA doesn’t mean “mixed data”, but “parsed character data” — an element with content #PCDATA mustn’t contain any other elements, but it can contain entity references (and in SGML it is subject to inclusion/exclusion exceptions, but those are not present in XML). “Mixed content” is something like (element1 | #PCDATA), which would be a lot harder to translate into a database schema.

    Your best bet is to either deduce the content type from the element type names or from helpful comments in the DTD, and/or to inspect a series of documents in observe their usage pattern.

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

Sidebar

Related Questions

i have a DTD file which i used to accessed through this link: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
I have XML files which contains a doctype: <!DOCTYPE someName SYSTEM fileName.dtd> The file
I have a php file which fetch and print data from my mysql table.
I have created an XML file and DTD which can be found at the
I have this code: <body onLoad=subcatSelection();> The function is inside a .js file which
I have a file frequencies.xml which contains lines with this form: <?xml version=1.0?> <!DOCTYPE
So I have a file called WebParts.aspx which looks like this - <%@ Page
I have the following code which is loading an xml file to populate a
I have looked at many examples for validating an XML file against a DTD,
i have a config file xml <tflow name=CENTRE inputDTD=/JOBS/cnav/etc/jobReporting/batch/dtd/dtd-ContactCentre.dtd inputFile=/JOBS/cnav/etc/jobReporting/import/2010.05.02.CONTACTCENTRE.xml logPath=/JOBS/cnav/etc/jobReporting/logs/ rejectPath=/JOBS/cnav/etc/jobReporting/rejets//> <tflow name=SKILL

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.