tagsoup-0.9: Parsing and extracting information from (possibly malformed) HTML/XML documents

Text.HTML.TagSoup.Tree

Description

NOTE: This module is preliminary and may change at a future date. If you wish to use its features, please email me and I will help evolve an API that suits you.

This module is intended to help converting a list of tags into a tree of tags.

Synopsis

Documentation

data TagTree str Source

Constructors

TagBranch str [Attribute str] [TagTree str] 
TagLeaf (Tag str) 

Instances

Functor TagTree 
Show str => Show (TagTree str) 

tagTree :: Eq str => [Tag str] -> [TagTree str]Source

Convert a list of tags into a tree. This version is not lazy at all, that is saved for version 2.

flattenTree :: [TagTree str] -> [Tag str]Source

transformTree :: (TagTree str -> [TagTree str]) -> [TagTree str] -> [TagTree str]Source