awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
leethomason avatar

leethomason/tinyxml2

0
View on GitHub↗
5,771 星标·1,948 分支·C++·Zlib·2 次浏览

Tinyxml2

TinyXML-2 是一个轻量级的 C++ 库,用于解析、操作和生成 XML 文档。它作为一个 UTF-8 XML 处理器,通过分层的文档对象模型(DOM)表示数据。

该库提供了用于 DOM 解析和通过数据流直接生成文档的工具。它包括导航 XML 树以定位特定元素、修改属性和内容,以及将字符实体和 Unicode 数字引用解析为 UTF-8 文本的功能。

该处理器包括语法验证和诊断实用程序,可跟踪每个节点和属性的行号元数据,从而报告解析错误的精确坐标。

Features

  • Document Object Models - Represents XML data as a hierarchical Document Object Model (DOM) for programmatic navigation and modification.
  • XML Parsing - Provides a C++ library for parsing and manipulating XML documents into structured data objects.
  • Document Generation - Produces XML output by writing data directly to a stream without requiring a fully materialized object tree.
  • XML and HTML Document Parsers - Creates in-memory document trees from XML for programmatic traversal and modification.
  • UTF-8 XML Processors - Functions as a UTF-8 XML processor that resolves character entities and Unicode numeric references into encoded text.
  • Source Line Tracking - Tracks source file line numbers for every node and attribute to provide precise coordinates for parsing errors.
  • XML Syntax Validators - Verifies the structural and syntactical correctness of XML files while tracking line metadata for error reporting.
  • Single-Pass Parsing - Employs a single-pass parsing strategy to transform raw XML text into an internal object model efficiently.
  • XML Entity Resolution - Converts predefined character entities and Unicode numeric references into UTF-8 equivalents during data parsing.
  • Character Entity Resolution - Translates predefined XML entities and Unicode numeric references into UTF-8 encoded bytes during parsing.
  • In-Memory Tree Hierarchies - Implements an in-memory node hierarchy that allows bidirectional traversal of the XML document structure.
  • Minimalist Library Design - Maintains a minimal codebase designed for easy integration into other programs without heavy external dependencies.
  • XML and YAML Node Navigation - Allows for finding specific text values or attributes by navigating the XML document's tree structure.
  • XML Processing - Simple and fast XML parser for C++.
  • Networking and Utilities - XML parser for easy integration.
  • XML Parsers - Simple and fast C++ XML parser.
  • XML - Listed in the “XML” section of the Awesome Cpp Cn awesome list.

Star 历史

leethomason/tinyxml2 的 Star 历史图表leethomason/tinyxml2 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

leethomason/tinyxml2 是做什么的?

TinyXML-2 是一个轻量级的 C++ 库,用于解析、操作和生成 XML 文档。它作为一个 UTF-8 XML 处理器,通过分层的文档对象模型(DOM)表示数据。

leethomason/tinyxml2 的主要功能有哪些?

leethomason/tinyxml2 的主要功能包括:Document Object Models, XML Parsing, Document Generation, XML and HTML Document Parsers, UTF-8 XML Processors, Source Line Tracking, XML Syntax Validators, Single-Pass Parsing。

leethomason/tinyxml2 有哪些开源替代品?

leethomason/tinyxml2 的开源替代品包括: zeux/pugixml — pugixml is a lightweight C++ XML parser and DOM-based library used for parsing, manipulating, and saving XML… symfony/dom-crawler — This project is an HTML and XML DOM parser designed for loading and navigating the structure of web documents to… leonidas-from-xiv/node-xml2js — This project is a Node.js library for bidirectional conversion between XML strings and JavaScript objects. It… sparklemotion/nokogiri — Nokogiri is an XML and HTML parsing library that builds navigable document trees from strings, files, or URLs using… michaelrsweet/mxml — Tiny XML library. microsoft/windows-universal-samples — This repository is a comprehensive collection of reference implementations and sample libraries for the Universal…

Tinyxml2 的开源替代方案

相似的开源项目,按与 Tinyxml2 的功能重合度排序。
  • zeux/pugixmlzeux 的头像

    zeux/pugixml

    4,590在 GitHub 上查看↗

    pugixml is a lightweight C++ XML parser and DOM-based library used for parsing, manipulating, and saving XML documents. It provides a portable toolset for reading XML data from files, strings, or memory buffers and converting them into an in-memory document object model. The library includes a dedicated XPath 1.0 engine for extracting specific nodes and data through path expressions. It distinguishes itself through customizable memory management, allowing heap operations to be redirected to user-defined allocation functions, and the ability to perform in-place buffer parsing to reduce memory

    C++
    在 GitHub 上查看↗4,590
  • symfony/dom-crawlersymfony 的头像

    symfony/dom-crawler

    4,043在 GitHub 上查看↗

    This project is an HTML and XML DOM parser designed for loading and navigating the structure of web documents to extract specific data points. It functions as a web scraping utility that provides a system for locating precise elements using a CSS and XPath selector engine. The library includes a URI resolver that converts relative links found in documents into absolute addresses using a base URI. It provides a set of tools for retrieving text, attributes, and media sources from parsed content. The toolset covers document hierarchy traversal, selector-based filtering, and text extraction with

    PHP
    在 GitHub 上查看↗4,043
  • leonidas-from-xiv/node-xml2jsLeonidas-from-XIV 的头像

    Leonidas-from-XIV/node-xml2js

    4,966在 GitHub 上查看↗

    This project is a Node.js library for bidirectional conversion between XML strings and JavaScript objects. It functions as an XML parser that transforms XML content into structured data and an XML serializer that generates formatted strings from JavaScript data objects. The toolkit includes a data transformer that applies custom processing functions to tags and attributes during the conversion process. It manages XML namespaces and supports the definition of custom root elements to maintain document structure during generation. The system handles XML data parsing, string generation, and name

    CoffeeScript
    在 GitHub 上查看↗4,966
  • sparklemotion/nokogirisparklemotion 的头像

    sparklemotion/nokogiri

    6,236在 GitHub 上查看↗

    Nokogiri is an XML and HTML parsing library that builds navigable document trees from strings, files, or URLs using native C parsers for speed and standards compliance. It provides a CSS selector engine that translates CSS3 selectors into XPath expressions for querying nodes, an XPath query interface with namespace support, a document manipulation toolkit for modifying parsed documents, XSD schema validation, and XSLT transformation capabilities. The library wraps libxml2 and libxslt C libraries with Ruby bindings for high-performance parsing, and integrates Google's Gumbo parser for standard

    Clibxml2libxsltnokogiri
    在 GitHub 上查看↗6,236
查看 Tinyxml2 的所有 30 个替代方案→