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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:36:31+00:00 2026-05-20T23:36:31+00:00

hey friends, i have been assigned a query planning project. in this project if

  • 0

hey friends,
i have been assigned a query planning project.
in this project if enter an sql like query, which i have to slice and turn into an xml.
i did this part, however i am required to add a DTD for this xml, because as the project mentions it helps to parse (using java DOM) this query and find easily the selection – duplicates and joins specified in the query.

i don’t understand, how does a DTD help while using DOM to parse the xml and find the different parts of this xml?

i could use DOM to find the different parts of the xml without a dtd… Can anybody give me and example of the difference?

thanks

  • 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-20T23:36:31+00:00Added an answer on May 20, 2026 at 11:36 pm

    A DTD tells the parser which tags are allowed, and where in the document they should be expected. Without a DTD, the parser will read the tags but it won’t know if the tag was an expected one, or if it was in the right place.

    If you parse your XML with SAX or DOM, it doesn’t matter, neither parser will know if your tags are expected or unexpected without a DTD (or one of it’s more recent replacements like XSD, RelaxNG, etc).

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

Sidebar

Related Questions

Hey friends I have one problem related to SQL Server 2008 R2. I set
Hey guys! I have this little problem: I have one ViewController which adds 2
Hey StackOverflow friends, I have a situation where I would like to be able
Hey friends can you help me out with this issue. I have a JSON:
Hey friends any one please help me for this issue.in this javascript code i
Hey i have been looking around and i cant find a way to get
hey guys having this really simple problem but cant seem to figure out have
Hey, say you have an array of friends that you've retrieved, how can you
Hey there I have been working on a transit app for some time and
hey. friends i dont know this question is really asked before or not ?

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.