Panorama has several functions for working with text that contains data delimited by tags. These functions are not actually specific to HTML, and you may find other uses for them.

These functions treat a tag as three components: header, body and trailer. In this example the tag header is <, the tag trailer is >, and the tag body is IMG SRC="happy.gif".

<IMG SRC="happy.gif">

The tag header and trailer may be more than one character long. Here is the same tag but with only the picture name as the body. In this example the tag header is <IMG SRC=", the tag trailer is ">, and the tag body is happy.gif.

<IMG SRC="happy.gif">

The tag functions don’t care about upper or lower case, so this tag will work fine if it is

<img src="happy.gif">.

General Tag Parsing

Here are the general tag parsing functions and statements.

Tag Parameter Parsing

Many HTML tags contain parameters. For example, this tag has three parameters: src, align and border.

<IMG SRC="mylogo.gif" align=left border=0>

Panorama has built in functions and statements that can help you extract a series of parameters like this. Although these functions were designed with parsing HTML tags in mind you may find other uses for them as well.

HTML Table Parsing Functions

These functions are specific to parsing HTML text, including functions that can extract information from an HTML table.