×

System and method for facilitating editing of codes such as HTML and XML codes by scripts

  • US 6,959,418 B1
  • Filed: 06/27/2001
  • Issued: 10/25/2005
  • Est. Priority Date: 06/27/2001
  • Status: Expired due to Term
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.

View all claims
  • 9 Assignments
Timeline View
Assignment View
    ×
    ×