[xsd-users] Parsing and validation from CDR stream
Romain
rc.mail.dev at gmail.com
Thu Jul 22 22:30:31 EDT 2010
Hi everyone,
Given this example (from C++ / Tree mapping user manual):
// Parse XML to object model.
//
std::auto_ptr<type> r = root ("root.xml");
// Save to a CDR stream.
//
ACE_OutputCDR ace_ocdr;
xml_schema::ostream<ACE_OutputCDR> ocdr (ace_ocdr);
ocdr << *r;
// Load from a CDR stream.
//
ACE_InputCDR ace_icdr (buf, size);
xml_schema::istream<ACE_InputCDR> icdr (ace_icdr);
std::auto_ptr<object> copy (new object (icdr));
Is it possible to parse and validate the XML message after loading
from the CDR stream?
Thank you for your help.
Regards,
Romain
More information about the xsd-users
mailing list