JDOM ensures the document in memory is always well-formed. Can JDOM also ensure the document in memory is always valid?
No, it’s our current belief that it’s better to expose a checkValid() type of call than to attempt constant validation checking. One reason is performance. A second reason is that you have a chicken-and-egg problem where for example an element needs exactly two child elements to be valid, but after adding either child the document will be in a temporarily invalid state. To work around this would require something like transactional modifications, and that’s a lot of overhead for little gain.
Related Questions
- How will the ACR ensure that QPIs for rheumatologists are valid (based on patient benefit, not primarily on cost) and realistic?
- How long is the document showing I passed a SBDE-approved dental assistant course provider valid for?
- What processes are in place to ensure the carrier has submitted a valid freight bill?