TiXI
3.3.0
|
Functions | |
DLL_EXPORT ReturnCode | tixiSchemaValidateFromFile (const TixiDocumentHandle handle, const char *xsdFilename) |
Validate XML-document against an XML-schema. More... | |
DLL_EXPORT ReturnCode | tixiSchemaValidateWithDefaultsFromFile (const TixiDocumentHandle handle, const char *xsdFilename) |
Validate XML-document against an XML-schema and insert missing default elements and attributes. More... | |
DLL_EXPORT ReturnCode | tixiSchemaValidateFromString (const TixiDocumentHandle handle, const char *xsdString) |
Validate XML-document against an XML-schema. More... | |
DLL_EXPORT ReturnCode | tixiDTDValidate (const TixiDocumentHandle handle, const char *DTDFilename) |
Validate XML-document against a DTD. More... | |
Functions to validate document with respect to DTD or Schemas.
DLL_EXPORT ReturnCode tixiDTDValidate | ( | const TixiDocumentHandle | handle, |
const char * | DTDFilename | ||
) |
Validate XML-document against a DTD.
Validates an XML-document against a DTD specified by DTDFilename. This routine is to be called after opening a document by tixiOpenDocument and before tixiSaveDocument if the validation against a DTD is desired for the input file and the output file, respectively.
Fortran syntax:
tixi_dtd_validate( integer handle, character*n dtd_filename, integer error )
[in] | DTDFilename | name of the DTD-file to be used |
[in] | handle | handle to the XML-document to be validated. |
DLL_EXPORT ReturnCode tixiSchemaValidateFromFile | ( | const TixiDocumentHandle | handle, |
const char * | xsdFilename | ||
) |
Validate XML-document against an XML-schema.
Validates an XML-document against an XML-schema specified by xsdFilename. This routine should be called after opening a document by tixiOpenDocument and before tixiSaveDocument if the validation against an XML-schema is desired for the input file and the output file, respectively.
Fortran syntax:
tixi_schema_validate_from_file( integer handle, character*n xsd_filename, integer error )
[in] | xsdFilename | name of the XML-schema-file to be used. |
[in] | handle | handle to the XML-document. |
DLL_EXPORT ReturnCode tixiSchemaValidateFromString | ( | const TixiDocumentHandle | handle, |
const char * | xsdString | ||
) |
Validate XML-document against an XML-schema.
Validates an XML-document against an XML-schema specified by xsdString. This routine should be called after opening a document by tixiOpenDocument and before tixiSaveDocument if the validation against an XML-schema is desired for the input file and the output file, respectively. The complete schema has to be in the string xsdString before running this function.
Fortran syntax:
tixi_schema_validate_from_string( integer handle, character*n xsd_string, integer error )
[in] | xsdString | char array witch is holding a schema. |
[in] | handle | handle to the XML-document. |
DLL_EXPORT ReturnCode tixiSchemaValidateWithDefaultsFromFile | ( | const TixiDocumentHandle | handle, |
const char * | xsdFilename | ||
) |
Validate XML-document against an XML-schema and insert missing default elements and attributes.
Validates an XML-document against an XML-schema specified by xsdFilename. This routine should be called after opening a document by tixiOpenDocument and before tixiSaveDocument if the validation against an XML-schema is desired for the input file and the output file, respectively. If the schema contains default values, these are added to the XML-document (which is not the case for tixiSchemaValidateFromFile).
Fortran syntax:
tixi_schema_validate_with_defaults_from_file( integer handle, character*n xsd_filename, integer error )
[in] | xsdFilename | name of the XML-schema-file to be used. |
[in] | handle | handle to the XML-document. |