Skip to content

jtaylorme/htmlParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

htmlparser

A simple c++ html parser with limited xPath support.

See Wiki for documentation.

All my work has been on Windows and no good way to test other platforms so may need a bit of tweaking if you port.

Changes from rangerlee version

-TagName Comparison CaseInsensitive

-Changed html method to OuterHTML

-Ehanced SelectElement

-Added InnerHTML

-Added SetAttribute

-Added SetInnerHTML

-Added SetInnerText

-Added GetElementsById

-Moved to classlist style handling of classes

std::vector<std::string> classlist;    

-Added GetClassList

-Added HasClass

-Added RemoveClass

-Added ToggleClass

-Added ClearClasses

-Added GetSiblingNext

-Added GetSiblingPrev

-Added GetChildren

-Added Removed SplitClassName

-Added GetRoot

-Added Helper Functions

UpdateClassAttribute

toLower

toLowerW

EscapeForXPath

EqualIgnoreCase

StartsWith

EndsWith

Trim

AttrContains

AttrStartsWith

AttrEndsWith

ClassStartsWith

ClassEndsWith

ClassContains

ClearQuotes

Usage

Basic usage please see demo parser_test.cpp.

About

Simple HTML Parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages