System and method for validating an XML document and reporting schema violations
AssigneeMicrosoft Corporation
InventorsBrian M. Jones, Marcin Sawicki, Robert A. Little
Life of this patent
Estimating the term…
Abstract
A system and method for validating an extensible markup language (XML) document and reporting schema violations in real time. A parallel tree is maintained that includes nodes corresponding to non-native XML elements of the XML document. When changes occur to the XML document, the non-native XML elements corresponding to the changes are marked. The nodes corresponding the marked non-native XML elements are validated against an XML schema that corresponds to the non-native XML markup. The elements and nodes corresponding to errors in the non-native XML markup are then reported to the user according to display indicators in the XML document and the parallel tree.
Claims23
A method for validation and reporting of schema violations for an extensible markup language (XML) document, wherein the XML document includes native XML and non-native XML, the method comprising:
- locating a change to a non-native XML element within the XML document;
- marking a portion of the XML document to signify that the change has occurred with relation to that portion of the XML document;
- marking a node within a parallel tree to signify that the change has occurred, wherein the node corresponds to the portion of the XML document where the change occurred;
- validating the node of the parallel tree against a corresponding non-native XML schema;
- determining if an error in the non-native XML element exists from error data supplied in response to validating the node;
- and
- displaying an error notification within the XML document and the parallel tree if the error occurred.
A computer-readable medium having computer-executable components, comprising:
- a first component for generating an extensible markup language (XML) document that includes a first type of elements associated with a first XML schema and a second type of elements associated with a second XML schema, the firsts component being configured to present a display indicative that the at least one of the first type of elements violates the first XML schema;
- a second component for storing nodes, each node being associated with a corresponding element in the first component, the first component and the second component being synchronized;
- and
- a third component for validating the elements, the third component being arranged to return error data to the first component in response to a violation of the validation.
A computer-readable medium encoded with data structures, comprising:
- a first data structure comprising elements of extensible markup language (XML);
- a second data structure comprising an element tree corresponding to the elements of the first data structure;
- and
- a display indicator in proximity to an element in the first data structure and a corresponding node in the second data structure, the display indicator signifying a validation error.
A computer-readable medium having computer-executable instructions for validation and reporting of schema violations for an extensible markup language (XML) document, wherein the XML document includes native XML and non-native XML, the instructions comprising:
- locating a change to a non-native XML element within the XML document;
- creating a new node within a parallel tree if the change corresponds to the creation of a new non-native XML element within the XML document;
- marking a portion of the XML document as affected by the change;
- marking a node within the parallel tree to signify that the change has occurred, wherein the node corresponds to the portion of the XML document affected by the change;
- validating the marked node of the parallel tree against a corresponding schema;
- determining if an error in the non-native XML element exists from error data supplied in response to validating the node;
- and
- if so, displaying a notification of the error within the XML document and the parallel tree.
Dependencies are inferred from the claim text.