Difference between revisions of "Rationale"

From wiki
Jump to: navigation, search
(New page: This section lists some design decisions that have been during the development of the library. The output streams do not accept a grammar during construction for validation : * validation...)
 
Line 1: Line 1:
This section lists some design decisions that have been during the development of the library.
+
This section lists some design decisions that have been made during the development of the library.
  
The output streams do not accept a grammar during construction for validation :
+
== The output streams do not accept a grammar during construction for validation ==
 
* validation can only occur once the document is complete
 
* validation can only occur once the document is complete
 
* failed validation usually throws an exception
 
* failed validation usually throws an exception

Revision as of 16:17, 27 June 2009

This section lists some design decisions that have been made during the development of the library.

The output streams do not accept a grammar during construction for validation

  • validation can only occur once the document is complete
  • failed validation usually throws an exception
  • the xml::xofstream uses RAII to flush the document to file in its destructor
  • a destructor must not throw
  • anyway it's simple enough to re-open the output stream with an input stream for validation afterwards