Describes how to validate a metadata XML file.
About this task
You can create a metadata XML file from a template or generate one by using the Dataset
Extraction tool. You must validate the file to ensure that the contents are valid as in the metadata
XML schema definition.
Procedure
-
Run the tnpmDatasetExtractor.sh script.
For
example:
cd <TEMP_DIR>/Dataset_Extractor/bin
./tnpmDatasetExtractor.sh -file ../resources/tnpmDatasetExtractor.properties
-
Select the option 2 to validate the content of the metadata at the
prompt:
Press "1" to genereate the Dataprovider metadata, "2" to validate the
Dataprovider metadata repository xml
2
GYMCP1016I: Validating dataprovider metadata repository xml...
GYMCP1015I: TNPM_DS_MIB2.xml validation is done and it is valid.
Verify that the XML is valid from the tool's prompt message.
Note: The tool indicates whether the validation has any errors in the prompt screen itself.
Depending on the number of errors, the tool's log messages might not always report the errors
accurately.