Efficient extensible markup language namespace parsing for editing
First Claim
1. A method for efficiently managing XML namespaces associated with an Extensible Markup Language (XML) document, comprising:
- receiving an XML document;
parsing the XML document for locating one or more XML tags applied to the document;
parsing the one or more XML tags to determine a prefix and a namespace associated with the one or more XML tags;
building a namespace table for mapping a prefix for each of the one or more XML tags to a namespace for each of the one or more XML tags; and
building an XML output array whereby the output array provides an identification for each of the one or more XML tags, a namespace identification for each of the one or more XML tags, and a pointer to a namespace table for each of the one or more XML tags, the namespace table for pointing to a prefix-to-namespace relationship for each of the one or more XML tags.
1 Assignment
0 Petitions
Accused Products
Abstract
Methods and computer products provide for an efficient XML namespace analysis and parsing. Extensible Markup Language (XML) structure of an XML document is passed through an XML parser as plain text, and the result is an internal data structure that represents the XML. The XML parser keeps track of all mappings of prefixes-to-namespaces as it is parsing the tree of XML tags in the text. A design tool application may be use to modify the parsed data structure by moving XML tags to different locations, by adding new XML tags, or by deleting XML tags. After modifications are complete, and the user wants to save a file, the XML may be re-written as text. The mappings of prefixes-to-namespaces are advantageous during output so that each XML tag is associated with the correct prefix.
36 Citations
20 Claims
-
1. A method for efficiently managing XML namespaces associated with an Extensible Markup Language (XML) document, comprising:
-
receiving an XML document;
parsing the XML document for locating one or more XML tags applied to the document;
parsing the one or more XML tags to determine a prefix and a namespace associated with the one or more XML tags;
building a namespace table for mapping a prefix for each of the one or more XML tags to a namespace for each of the one or more XML tags; and
building an XML output array whereby the output array provides an identification for each of the one or more XML tags, a namespace identification for each of the one or more XML tags, and a pointer to a namespace table for each of the one or more XML tags, the namespace table for pointing to a prefix-to-namespace relationship for each of the one or more XML tags. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for efficiently managing XML namespaces associated with an Extensible Markup Language (XML) document, comprising:
-
receiving an XML document;
parsing the XML document for locating one or more XML tags applied to the document;
parsing the one or more XML tags to determine a prefix and a namespace associated with the one or more XML tags;
building a namespace table for as many different namespaces as are registered for the XML document, and mapping a prefix for each XML tag in the XML document to a namespace;
building an XML output array whereby the output array provides an identification for each of the one or more XML tags, a namespace identification for each of the one or more XML tags, and a pointer to a namespace table for each of the one or more XML tags, the namespace table for pointing to a prefix-to-namespace relationship for each of the one or more XML tags;
allowing modification of tags contained in the XML output array; and
upon rewriting the parsed XML document to text after allowing modification of tags contained in the XML output array, utilizing the XML output array for ensuring that each XML tag in the written to text XML document is matched to a correct XML tag prefix. - View Dependent Claims (10, 11, 12)
-
-
13. A computer-readable medium on which is stored computer-executable instructions which when executed by a computer perform a method for efficiently managing XML namespaces associated with an Extensible Markup Language (XML) document, comprising:
-
receiving an XML document;
parsing the XML document for locating one or more XML tags applied to the document;
parsing the one or more XML tags to determine a prefix and a namespace associated with the one or more XML tags;
building a namespace table for mapping a prefix for each of the one or more XML tags to a namespace for each of the one or more XML tags; and
building an XML output array whereby the output array provides an identification for each of the one or more XML tags, a namespace identification for each of the one or more XML tags, and a pointer to a namespace table for each of the one or more XML tags, the namespace table for pointing to a prefix-to-namespace relationship for each of the one or more XML tags. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification