
Simple and fast HTML and XML parser
DiDOM is a robust and efficient HTML parser designed for developers who need a straightforward and speedy tool for working with HTML and XML documents. It provides a range of functionalities tailored for parsing, manipulating, and querying document elements with ease. Whether you’re building a web scraper or just need to process HTML content in your applications, DiDOM stands out due to its simplicity and versatility.
The latest version of DiDOM boasts enhanced features and improved stability, making it an excellent choice for both novice and experienced developers alike. With its easy installation and quick start options, getting up and running is a breeze. Plus, the variety of methods available for document manipulation ensures that various tasks can be performed with minimal complexity.
Easy Installation: To get started with DiDOM, simply run a command to install it, making setup straightforward and hassle-free.
Flexible Document Creation: DiDOM allows you to load HTML or XML content in multiple ways, either through the constructor or using separate methods like loadXml and loadXmlFile.
Powerful Search Capabilities: Utilize CSS selectors or XPath to find elements within your documents. DiDOM's find() method helps in retrieving elements easily, returning instances of DiDom\Element or DOM elements as required.
Element Verification: The has() method enables you to quickly verify if a specific element exists in the document, streamlining your element-checking process.
Versatile Content Manipulation: Change inner HTML, add or remove child elements, and replace existing elements with simple method calls, allowing for seamless content management.
Document Attribute Handling: Work with document attributes efficiently and compare elements, enhancing your ability to manipulate HTML structures.
Support for CSS Selectors: DiDOM not only supports basic selectors but also advanced pseudo-classes, making complex queries easier and more intuitive.
Cache Management: The framework provides functionality for caching, optimizing performance during repeated operations on the same elements.
