A fast and lightweight XML/HTML parser for Swift with XPath and CSS query support.
Fuzi is a Swift library for parsing and querying XML and HTML documents. It provides a fast, lightweight solution for extracting and navigating data from markup using XPath and CSS selectors, addressing the need for efficient document processing in Swift-based apps.
iOS and macOS developers who need to parse, query, or manipulate XML/HTML data within their Swift applications, such as those working with web scraping, RSS feeds, or configuration files.
Developers choose Fuzi for its Swift-native API that eliminates cumbersome type casting, its high performance from libxml2, and its dual support for XPath and CSS queries, offering a more modern alternative to Objective-C parsers like Ono.
A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
Leverages libxml2 for fast document processing, making it efficient for handling large XML/HTML files, as highlighted in the README's emphasis on performance.
Supports both XPath and CSS selectors, offering flexibility for querying documents, which is a key feature inherited from Ono and improved in Fuzi.
Provides a clean, type-safe interface that follows Swift conventions, reducing unnecessary type casting compared to Objective-C alternatives like Ono.
Allows access to all node types including elements, text, and comments, enabling fine-grained document manipulation as demonstrated in the examples.
The README admits support for more CSS selectors is 'yet to come', limiting its utility for complex CSS-based queries in current versions.
Primarily targeted at iOS and macOS, with no clear documentation for server-side Swift on Linux or other platforms, restricting its use in cross-platform projects.
Parses entire documents into memory without streaming options, which can be inefficient for very large files where incremental parsing is preferred.
SwiftSoup: Pure Swift HTML Parser, with best of DOM, CSS, and jquery (Supports Linux, iOS, Mac, tvOS, watchOS)
A sensible way to deal with XML & HTML for iOS & macOS
Kanna(鉋) is an XML/HTML parser for Swift.
Simple XML parsing in Swift
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.