System and method for validating an XML document and reporting schema violations
First Claim
1. A method for validation and reporting of schema violations for an extensible markup language (XML) document, wherein the XML document includes native XML elements and non-native XML elements, 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 associated with the changed non-native XML to signify that the change has occurred, wherein the node corresponds to the portion of the XML document where the change has occurred, and wherein the parallel tree selectively includes the node corresponding to the changed non-native XML element and excludes at least one node corresponding to at least one of the native XML elements, wherein the at least one of the native XML elements is associated with a corresponding native XML schema and the changed non-native XML element is associated with a corresponding non-native XML schema;
validating the node of the parallel tree against the corresponding non-native XML schema such that the portion of the XML document where the change to the non-native XML element within the XML document occurred is validated;
determining if an error in the changed 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.
2 Assignments
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
1. A method for validation and reporting of schema violations for an extensible markup language (XML) document, wherein the XML document includes native XML elements and non-native XML elements, 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 associated with the changed non-native XML to signify that the change has occurred, wherein the node corresponds to the portion of the XML document where the change has occurred, and wherein the parallel tree selectively includes the node corresponding to the changed non-native XML element and excludes at least one node corresponding to at least one of the native XML elements, wherein the at least one of the native XML elements is associated with a corresponding native XML schema and the changed non-native XML element is associated with a corresponding non-native XML schema; validating the node of the parallel tree against the corresponding non-native XML schema such that the portion of the XML document where the change to the non-native XML element within the XML document occurred is validated; determining if an error in the changed 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-readable storage 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 at least one of the second type of elements violates the second XML schema, wherein the first type and second type are native XML and non-native XML respectively; a second component for selectively storing in a tree structure nodes that are associated with the second type of elements and the second XML schema and excluding nodes that are associated with the first type of elements and the first XML schema, each node in the tree structure 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 associated with the nodes in the tree structure, the third component being arranged to return error data to the first component in response to a violation of the validation, wherein the elements are validated in response to a change in the elements of the first component associated with the nodes in the tree structure. - View Dependent Claims (12, 13)
-
-
14. A computer-readable storage 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 elements and non-native XML elements, the instructions comprising:
-
locating a change to a non-native XML element within the XML document; creating a new node within a parallel tree when the change corresponds to the creation of a new non-native XML element within the XML document;
wherein the parallel tree selectively includes the node corresponding to the new non-native XML element and excludes at least one node corresponding to at least one of the native XML elements, wherein the at least one of the native XML elements is associated with a corresponding native XML schema and the new non-native XML element is associated with a corresponding non-native XML schema;marking a portion of the XML document as affected by the change; marking the new node within the parallel tree to signify that the change has occurred, wherein the new node corresponds to the portion of the XML document affected by the change; validating the new node of the parallel tree against the corresponding non-native XML schema such that the portion of the XML document where the change to a the non-native XML element within the XML document occurred is validated; determining if an error in the new non-native XML element exists from error data supplied in response to validating the new node; and if so, displaying a notification of the error within the XML document and the parallel tree. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification