Generated C++ Method Format and Calling Parameters
Generated validation and SAX method implementations are written to a .cpp file with a name of the following format:
where <xsdFileName> is the base name of the XSD file being parsed. For example, if code is being generated for file x.xsd, validation methods for each global element defined in the specification will be written to xVldt.cpp. If the file being processed is a WSDL file, the suffix would be WSDLVldt.c (for example, x.wsdl would produce xWSDLVldt.c).
The main method for validating an XML document that corresponds to an XSD global element is the validate or validateFrom methods. The validate method exists in the OSXSDGlobalElement base class and validates a message from the message buffer or stream associated with the class to the XSD type object instance. A validateFrom method is generated for each global element that is not referenced by any other types. This method takes as an argument a message buffer of stream reference. The method reads the XML message from this buffer or stream and validates it.
Copyright © Objective Systems 2002-2008 This document may be distributed in any form, electronic or otherwise, provided that it is distributed in its entirety and that the copyright and this notice are included. |
Objective Systems, Inc.55 Dowlin Forge RoadExton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |