Previous Topic: Parse HTML/XML Result for the Value of a Specific Tag or AttributeNext Topic: Parse HTML Result for the Child Text of a Tag


Parse HTML Result for Specific Value and Parse It

The Parse HTML Result for the Value of a Specific Tag or Attribute Value and Parse It filter combines the following filters:

This filter is designed to find a specific attribute in a web page, and then further parse that attribute. If the attribute is a URL, and not only a name-value pair, there is a function for handling that information.

In this example, the filter finds the "href" attribute for the seventh anchor tag, which is a URL. The filter takes the "cmd" parameter and stores that value in the cmdlistusers_KEY.

Complete the following fields:

Filter in

The name of the property to consider as the last response for the step. If the property is not in the pull-down menu, you can enter it. The property must exist.

Tag

The name of the HTML tag. For an anchor tag, enter "a".

Tag Count

The occurrence of the tag from the top of response. For the seventh anchor tag, enter "7".

Attribute

The name of the attribute to filter. For the href attribute, enter "href".

IsURL

Select the check box if the attribute value is a URL.

Argument to Parse

The name of the argument to parse for its value; in this example, "cmd".

Property

The property in which to store the value.

In this example, "cmdlistusers_KEY".

URLEncode

When selected, property value is URLEncoded.

Default (if not found)

The value to use if the attribute value is not found.

Filter Run Results

Displays the property and values that result from running the filter.

Run Filter

To run and execute the filter, click Run Filter. The results appear in the Filter Run Results section.