System and method for real-time validation of structured data files
First Claim
Patent Images
1. A method comprising:
- in real-time during display of first and second data entry fields associated with first and second nodes of an (eXtensible Markup Language) XML data file, respectively, and responsive to a determination that first data entered into the first data-entry field associated with the first node of the XML data file is invalid, the determination made without validating all of the XML data file, and prior to second data being enabled to be entered into the second data-entry field associated with a second node of the XML data file;
determining that the first node of the XML data file is associated with an XML element;
reading, from the XML element, an error-type attribute, the error-type attribute indicating whether or not the first data being invalid is a modal type of error or a modeless type of error, the modal type of error being one in which the first data violates a schema governing the XML data file, the modeless type of error being one in which the first data does not violate the schema;
responsive to reading that the first data being invalid is the modal type of error;
rolling back the first data in the first node;
reading an error message from an error message attribute of the XML element; and
displaying the error message, orresponsive to reading that the first data being invalid is the modeless type of error;
reading the error message from the error message attribute of the XML element; and
displaying the error message.
1 Assignment
0 Petitions
Accused Products
Abstract
Validating data of and/or indicating errors of a structured data file using eXtensible Markup Language (XML) elements and/or XML Path (XPATH) expression are described.
871 Citations
16 Claims
-
1. A method comprising:
-
in real-time during display of first and second data entry fields associated with first and second nodes of an (eXtensible Markup Language) XML data file, respectively, and responsive to a determination that first data entered into the first data-entry field associated with the first node of the XML data file is invalid, the determination made without validating all of the XML data file, and prior to second data being enabled to be entered into the second data-entry field associated with a second node of the XML data file; determining that the first node of the XML data file is associated with an XML element; reading, from the XML element, an error-type attribute, the error-type attribute indicating whether or not the first data being invalid is a modal type of error or a modeless type of error, the modal type of error being one in which the first data violates a schema governing the XML data file, the modeless type of error being one in which the first data does not violate the schema; responsive to reading that the first data being invalid is the modal type of error; rolling back the first data in the first node; reading an error message from an error message attribute of the XML element; and displaying the error message, or responsive to reading that the first data being invalid is the modeless type of error; reading the error message from the error message attribute of the XML element; and displaying the error message. - View Dependent Claims (2, 3, 4, 5)
-
-
6. One or more computer-readable storage media having instructions therein that, when executed on one or more processors, perform acts comprising:
-
in real-time during display of first and second data entry fields associated with first and second nodes of an (eXtensible Markup Language) XML data file, respectively, and responsive to a determination that first data entered into the first data-entry field associated with the first node of the XML data file is invalid, the determination made without validating all of the XML data file, and prior to second data being enabled to be entered into the second data-entry field associated with a second node of the XML data file; determining that the first node of the XML data file is associated with an XML element; reading, from the XML element, an error-type attribute, the error-type attribute indicating whether or not the first data being invalid is a modal type of error or a modeless type of error, the modal type of error being one in which the first data violates a schema governing the XML data file, the modeless type of error being one in which the first data does not violate the schema; responsive to reading that the first data being invalid is the modal type of error; rolling back the first data in the first node; reading an error message from an error message attribute of the XML element; and displaying the error message, or responsive to reading that the first data being invalid is the modeless type of error; reading the error message from the error message attribute of the XML element; and displaying the error message. - View Dependent Claims (7, 8, 9, 10)
-
-
11. An apparatus comprising:
-
a processing unit; and one or more computer-readable storage media, the one or more computer-readable storage media having a real-time validation tool having instructions that, when executed on the processing unit, perform acts in real-time during display of first and second data entry fields associated with first and second nodes of an (eXtensible Markup Language) XML data file, respectively, and responsive to a determination that first data entered into the first data-entry field associated with the first node of the XML data file is invalid, the determination made without validating all of the XML data file, and prior to second data being enabled to be entered into the second data-entry field associated with a second node of the XML data file and comprising; determining that the first node of the XML data file is associated with an XML element; reading, from the XML element, an error-type attribute, the error-type attribute indicating whether or not the first data being invalid is a modal type of error or a modeless type of error, the modal type of error being one in which the first data violates a schema governing the XML data file, the modeless type of error being one in which the first data does not violate the schema; responsive to reading that the first data being invalid is the modal type of error; rolling back the first data in the first node; reading an error message from an error message attribute of the XML element; and displaying the error message, or responsive to reading that the first data being invalid is the modeless type of error; reading the error message from the error message attribute of the XML element; and displaying the error message. - View Dependent Claims (12, 13, 14, 15, 16)
-
Specification