An open API service indexing awesome lists of open source software.

https://github.com/artem14133q/sxml

A simple php library for manage xml/html documents.
https://github.com/artem14133q/sxml

html library php php8 php81 xml

Last synced: 5 months ago
JSON representation

A simple php library for manage xml/html documents.

Awesome Lists containing this project

README

          

# SXML

A simple php library for manage xml/html documents.

## Php version
`^8.1`

## Installation
`composer require artem14133q/sxml`

## Usage
```php
use Sxml\Documents\HtmlDocument;

$html = "




Document

Hello World!

";

$doc = HtmlDocument($html);

$body = $doc->getHtmlNode()->findByName("body")[0];
$div = $body->findByName("div")[0];

$div->setValue("Hello SXML!");

$doc->writer->asText();
```

Input:
```html




Document

Hello SXML!

```

## License
`MIT`