Multi-pass validation of extensible markup language (XML) documents
First Claim
1. A method for validating XML documents comprising:
- determining a set of preprocessing parameters from an XML document, wherein responsive to any missing preprocessing parameter in the set of preprocessing parameters, determining the XML document to be invalid, wherein a result of determining that the XML document is invalid causes a ceasing of activities related to validation, wherein the preprocessing parameters represent at least one of data tags and values within the XML document, and wherein the preprocessing parameters represent at least one of data tags and values within the XML document;
upon determining the set of preprocessing parameters, identifying a validation sequence from a plurality of validation sequences for the XML document based on the set of preprocessing parameters, wherein each of the validation sequence comprises a unique order of execution for series of validation passes to validate the XML document, wherein said validation sequence comprises a plurality of validation elements, wherein each validation pass corresponds to one of the validation elements, wherein each of the validation element represents a type of governance for validating the XML document, wherein each validation pass is configured to validate the XML document for at least one condition defined by the validation element; and
perform a multi-pass validation associated with the validation sequence on the XML document; and
producing a validation element result for each performed validation pass.
1 Assignment
0 Petitions
Accused Products
Abstract
A validation sequence for an XML document can be identified. The validation sequence can include a set of validation elements. At least one validation pass can be performed for the XML document. Each validation pass can correspond to one of the validation elements. Each validation pass can be configured to validate the XML document for at least one condition defined by the validation element. A validation element result can be produced for each performed validation pass. A validation element result that indicates the XML document is invalid can cause an immediate ending of activities related to the validation sequence, which determines the XML document in general to be invalid. A validation element result that indicates the XML document is valid causes a validation pass to be performed for another one of the validation elements unless each validation element in the validation sequence has been processed. A successful validation of the XML document requires a performance of a successful execution pass for each of the plurality the validation elements.
24 Citations
20 Claims
-
1. A method for validating XML documents comprising:
-
determining a set of preprocessing parameters from an XML document, wherein responsive to any missing preprocessing parameter in the set of preprocessing parameters, determining the XML document to be invalid, wherein a result of determining that the XML document is invalid causes a ceasing of activities related to validation, wherein the preprocessing parameters represent at least one of data tags and values within the XML document, and wherein the preprocessing parameters represent at least one of data tags and values within the XML document; upon determining the set of preprocessing parameters, identifying a validation sequence from a plurality of validation sequences for the XML document based on the set of preprocessing parameters, wherein each of the validation sequence comprises a unique order of execution for series of validation passes to validate the XML document, wherein said validation sequence comprises a plurality of validation elements, wherein each validation pass corresponds to one of the validation elements, wherein each of the validation element represents a type of governance for validating the XML document, wherein each validation pass is configured to validate the XML document for at least one condition defined by the validation element; and perform a multi-pass validation associated with the validation sequence on the XML document; and producing a validation element result for each performed validation pass. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computer program product for validating XML documents, the computer program product comprising:
-
a non-transitory computer usable storage medium having computer usable program code embodied therewith, the computer usable program code comprising; computer usable program code configured to determine a set of preprocessing parameters from an XML document, wherein responsive to any missing preprocessing parameter in the set of preprocessing parameters, identifying the XML document to be invalid, wherein a result of identifying that the XML document is invalid causes ceasing of activities related to validation, wherein the preprocessing parameters represent at least one of data tags and values within the XML document; computer usable program code configured to, upon determining, identify a validation sequence for an XML document based on the set of preprocessing parameters, wherein the validation sequence comprises an order of execution for series of validation passes to validate the XML document, wherein said validation sequence comprises a plurality of validation elements, wherein each validation pass corresponds to one of the validation elements, wherein each of the validation element represents a type of governance for validating the XML document, wherein each validation pass is configured to validate the XML document for at least one condition defined by the validation element; computer usable program code configured to perform the validation sequence, comprising the series of validation passes, on the XML document; and computer usable program code configured to produce a validation element result for each performed validation pass, wherein a validation element result that indicates the XML document is invalid causes a ceasing of activities related to unprocessed ones of the validation elements in the validation sequence, wherein a validation element result that indicates the XML document is valid causes a validation pass to be performed for another one of the validation elements unless each validation element in the validation sequence has been processed, wherein a successful validation of the XML document requires a performance of a successful execution pass for each of the plurality the validation elements.
-
-
11. A method that utilizes a multi-pass technique to validate extensible markup language (XML) documents comprising:
-
receiving an XML document containing a plurality of data items, wherein the plurality of data items are arranged in a predetermined format for an exchange of data; ascertaining a set of processing parameter from the XML document, wherein responsive to any missing preprocessing parameter in the set of preprocessing parameters, determining that the XML document to be invalid, wherein a result of determining that the XML document is invalid causes a ceasing of activities related to validation, and wherein the preprocessing parameters represent at least one of data tags and values within the XML document; upon determining the set of preprocessing parameters, determining a validation sequence for the XML document from a plurality of different validation sequences, wherein the validation sequence is determined based at least in part upon the set of processing parameters, wherein each of the validation sequence comprises a unique order of execution for a series of validation passes, wherein the validation sequence comprises a plurality of validation elements that each defines acceptable data items for at least one of the predetermined format and for the exchange of data, wherein each validation pass is configured to validate the XML document for a condition defined by the validation element; and executing the series of validation passes associated with the validation sequence upon the XML document, wherein during the execution, a validation pass for each validation element is executed in order. - View Dependent Claims (12, 13, 14, 15, 19, 20)
-
-
16. A system utilizing a multi-pass technique to optimize the validation of extensible markup language (XML) documents comprising:
-
an XML document containing a plurality of data items, wherein the plurality of data items are arranged in a predetermined format for an exchange of data; a document preprocessor configured to analyze the XML document for a set of preprocessing parameters; a validation coordinator configured to identify the XML document as an invalid document in response to determining that one or more preprocessing parameters of the set of preprocessing parameters are missing; upon determining the set of preprocessing parameters, identifying determine the validation sequence for the XML document based upon the at least one preprocessing parameter determined by the document preprocessor and monitor an execution of said validation sequence; and a multi-pass XML validator configured to validate the XML document utilizing a multi-pass validation associated with a validation sequence, wherein the validation sequence contains an order of execution for a series of validation passes, wherein the validation sequence comprises a plurality of validation elements that each defines acceptable data items for at least one of the predetermined format and for the exchange of data, wherein each validation pass corresponds to one of the validation elements, wherein each validation pass is configured to validate the XML document for a condition defined by the validation element; and at least one document evaluator configured to execute the validation sequence upon the XML document as directed by the multi-pass XML validator. - View Dependent Claims (17, 18)
-
Specification