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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:20:25+00:00 2026-06-10T19:20:25+00:00

As per Validating a HUGE XML file Agreed but I am still confused…how is

  • 0

As per Validating a HUGE XML file
Agreed but I am still confused…how is XML Schema validation even possible with SAX parsing.I mean schema validation involves going back and forth in the XML to validate for example – key references etc. Shouldn’t the whole XML be available in memory to do that?
Sorry for the dumb question 🙁

  • 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-10T19:20:27+00:00Added an answer on June 10, 2026 at 7:20 pm

    Validation against a schema can be done with almost zero memory. The UPA constraint ensures that validation against a content model never requires backtracking. You do need of course to keep track of your state in the FSM of the content model for every element on the stack, that is, memory proportional to the maximum nesting depth of the document.

    ID/IDREF validation is an exception: for this, the processor needs memory proportional to the number of ID and IDREF values encountered. Crudely, the processor remembers all the IDs and IDREF values found, and when it gets to the end of the document, checks that no ID appears twice and that every IDREF appears among the IDs. Similarly, for checking of unique/key/keyref the processor needs to remember what key values have been found. But the memory needed for this is a lot less than “keeping the whole XML in memory”.

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

Sidebar

Related Questions

I'm trying to get a JSON schema validator up and running per: http://davidwalsh.name/json-validation I
As per [http://lessons.goxtk.com/09/][1] [1]: http://lessons.goxtk.com/09/ i need to use a .vtk file with 15,000
As per requirement I disabled all validation controls in page on PageLoad event in
As per the official documentation of lxml, if one wants to validate a xml
I am trying to unset recapthca validation on a few forms but have not
i am validating user input in my application using Struts2 build in validation framework
Per a client's request I have written a communication class that inherits from webclient.
Per a great answer from another question I have begun mounting global resources (css/js/images)
Per this question (see comments near the bottom), I was wondering if anyone knows
Per the documentation , String.Format will throw a FormatException if either (A) the format

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.