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:

       <xsdFileName>Vldt.cpp

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.