System and method for facilitating editing of codes such as HTML and XML codes by scripts
First Claim
Patent Images
1. A method for reformatting a tag-based code containing at least one corresponding beginning and end tag pair, comprising;
- locating each beginning and end tag of the tag-based code;
separating distinct tags and data associated therewith into separate lines;
maintaining a tag structure state machine for determining a tag structure corresponding to each line; and
delineating each line with a representation of a tag structure corresponding to the line based on the tag structure state machine;
wherein said separating distinct tags and data associated therewith into separate lines includes;
placing each beginning tag and any data associated therewith prior to a next beginning tag, if any, on a new line;
placing each end tag on a same line as any data associated therewith located immediately before the end tag; and
initiating a new line each time an end tag is processed if the end of the file is not yet reached;
wherein line-based script tools are utilized to process the reformatted code;
wherein a particular line includes an embedded tag that is embedded within another tag, where the representation of the tag structure corresponding to the particular line includes the embedded tag and the other tag, and the embedded tag is located at a top of a LIFO tag stack above the other tag.
9 Assignments
0 Petitions
Accused Products
Abstract
The method for reformatting a tag-based code containing at least one corresponding beginning and end tag pair generally includes locating each beginning and end tag of the tag-based code, separating distinct tags and data associated therewith into separate lines, maintaining a tag structure state machine for determining a tag structure corresponding to each line, and delineating each line with a representation of a tag structure corresponding to the line based on the state-machine of the tag structure.
22 Citations
14 Claims
-
1. A method for reformatting a tag-based code containing at least one corresponding beginning and end tag pair, comprising;
-
locating each beginning and end tag of the tag-based code; separating distinct tags and data associated therewith into separate lines; maintaining a tag structure state machine for determining a tag structure corresponding to each line; and delineating each line with a representation of a tag structure corresponding to the line based on the tag structure state machine; wherein said separating distinct tags and data associated therewith into separate lines includes; placing each beginning tag and any data associated therewith prior to a next beginning tag, if any, on a new line; placing each end tag on a same line as any data associated therewith located immediately before the end tag; and initiating a new line each time an end tag is processed if the end of the file is not yet reached; wherein line-based script tools are utilized to process the reformatted code; wherein a particular line includes an embedded tag that is embedded within another tag, where the representation of the tag structure corresponding to the particular line includes the embedded tag and the other tag, and the embedded tag is located at a top of a LIFO tag stack above the other tag. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for reformatting a tag-based code containing at least one corresponding beginning and end tag pair, comprising:
-
computer code that locates each beginning and end tag of the tag-based code; computer code that separates distinct tags and data associated therewith into separate lines; computer code that maintains a tag structure state machine for determining a tag structure corresponding to each line; computer code that delineates each line with a representation of a tag structure corresponding to the line based on the tag structure state machine; and a tangible computer readable medium that stores said computer codes; wherein the computer code that separates distinct tags and data associated therewith into separate lines includes; computer code that places each beginning tag and any data associated therewith prior to a next beginning tag, if any, on a new line; computer code that places each end tag on a same line as any data associated therewith located immediately before the end tag; and computer code that initiates a new line each time an end tag is processed if the end of the file is not yet reached; wherein line-based script tools are utilized to process the reformatted code; wherein a particular line includes an embedded tag that is embedded within another tag, where the representation of the tag structure corresponding to the particular line includes the embedded tag and the other tag, and the embedded tag is located at a top of a LIFO tag stack above the other tag. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A method for processing a tag-based code containing at least one corresponding beginning and end tag pair using script tools, comprising:
-
reformatting the tag-based code; and utilizing script tools to process the reformatted code, wherein said reformatting includes; locating each beginning and end tag of the tag-based code; separating distinct tags and data associated therewith into separate lines; maintaining a tag structure state machine for determining a tag structure corresponding to each line; and delineating each line with a representation of a tag structure corresponding to the line based on the tag structure state machine; wherein said separating distinct tags and data associated therewith into separate lines includes; placing each beginning tag and any data associated therewith prior to a next beginning tag, if any, on a new line; placing each end tag on a same line as any data associated therewith located immediately before the end tag; and initiating a new line each time an end tag is processed if the end of the file is not yet reached; wherein line-based script tools are utilized to process the reformatted code; wherein a particular line includes an embedded tag that is embedded within another tag, where the representation of the tag structure corresponding to the particular line includes the embedded tag and the other tag, and the embedded tag is located at a top of a LIFO tag stack above the other tag. - View Dependent Claims (14)
-
Specification