[xsd-users] In-memory validation
david.r.moss at selex-comms.com
david.r.moss at selex-comms.com
Wed Sep 26 06:54:31 EDT 2007
Boris,
A while ago there was talk of in-memory validation as outlined in an
example below.
Example code:
// Load will fail when content is invalid.
auto_ptr<memory_test_t> rt( root( "in-memory-validation-test.xml" ) );
// Modify with a valid value (range is 20-80 inclusive).
rt->bounded_int( 50 );
cout << *rt << endl;
rt->bounded_int( 100 ); // Ideally, this should fail (throw exception - as
initial file load would)
cout << *rt << endl;
I believe this kind of capability was on your 'to do' list at one point;
is this still the case and, if so, do you have an idea of time-scales?!
Cheers,
Dave.
Dave Moss
SELEX Communications
Grange Road
Christchurch
Dorset BH23 4JE
United Kingdom
Tel: + 44 (0) 1202 404841
Email: david.r.moss at selex-comms.com
------------------------------------------------------------
This email and any attached files contains company confidential information which may be legally privileged. It is intended only for the person(s) or entity to which it is addressed and solely for the purposes set forth therein. If you are not the intended recipient or have received this email in error please notify the sender by return, delete it from your system and destroy any local copies. It is strictly forbidden to use the information in this email including any attachment or part thereof including copying, disclosing, distributing, amending or using for any other purpose.
In addition the sender excludes all liabilities (whether tortious or common law) for damage or breach arising or related to this email including but not limited to viruses and libel.
SELEX Communications Limited is a Private Limited Company registered in England and Wales under Company Number 964533 and whose Registered Office is Marconi House, New Street, CHELMSFORD, Essex. CM1 1PL. England.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: in-memory-validation.xsd
Type: application/octet-stream
Size: 518 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070926/819f817b/in-memory-validation.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: in-memory-validation-test.xml
Type: application/octet-stream
Size: 282 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20070926/819f817b/in-memory-validation-test.obj
More information about the xsd-users
mailing list