Tools Home : XML Tools : List XML Elements

Click here to show HTML tools HTML Tools

Click here to expand XML tools XML tools

Click here to expand plain text tools Plain Text Tools

Click here to expand other tools Other tools

 Beta tools
 Add Tools Demo

List XML Elements and Attributes

This tool displays all elements found within an XML document, either located at a specified web address or in a document uploaded from the user’s files.

Users can also count all instances of an element, view the structure and hierarchy of the document, and list attributes and attribute values. The results can be displayed alphabetically, by frequency, by order of appearance, or in reversed alphabetical order.

Please click the ? buttons at the bottom right of each set of options for more information on that set.

For further information on this tool, please see the TADA Wiki’s List XML Elements entry here. A glossary of terms is also available here.


To use XML from, extract unique element names, count them and sort the results by frequency:
  1. Source text
    1. Enter ‘’ into the ‘URL’ field.
  2. List Options
    1. Click the radio button next to 'List unique element names'.
  3. Results
    1. Select ‘HTML’ from the ‘Display as’ drop-down menu.
  4. Click the ‘Submit’ button to process the text.
» Source text


This section determines the source of the document you wish the tool to process. XML can be obtained either from a web address or by uploading a file.


Source URL
To use content from a web page, enter a full web address (URL) ending in .html in the field provided. Copy and paste from your browser’s address bar for best results.

Local file
To upload an XML (.xml) file from your computer, choose ‘Local file,’ click ‘Browse,’ and select the file you wish to use from your directory.
» List options


This section allows the user to determine what to include in the list of elements or attributes in the results from three sets of options.


List unique element names
Determines and lists all unique element names in the document.

Count elements
Counts how many times each unique element appears in the document.

Count average words of the element
Determines the average number of words contained within each unique element.

Plot element counts against average word count for elements
Determines both the number of times each unique element appears and the average word word count for a unique element, and plots it on a bar graph.

Display element tree structure
Displays the element hierarchy of the document.

Display with attributes
Includes all the element attributes in the document alongside the elements they modify as they appear in the tree structure.

Count words of the element
Provides a count of the number of words contained in each element as it appears in the tree structure.

List attributes
Lists all attributes in the document alongside the elements they modify.

List attribute values
Lists all attributes associated with each element.

List elements containing attributes
Lists all attributes associated with each element.
» Results

This section allows users to choose how the results will be formatted, and whether to display it in a new browser window.


Display as
This drop-down lists enables users to choose from several output formats: HTML, XML text in HTML, XML tree, and Tab delimited text.

Display words before and after the pattern
Check this box to display the words surrounding the pattern. Note: Concordance only.

Open results in new window
Checking this box will display the results in a new window. This option is selected by default. Some pop-up blockers may prevent a new window from being opened; if so, un-check the box to open the results in the same window instead.
`*' indicates a required field



TAPoRware Project, McMaster University,