Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/h1alexbel/eo-dom
EO Objects for Manipulations with DOM
https://github.com/h1alexbel/eo-dom
dom-manipulation eolang xml
Last synced: about 1 month ago
JSON representation
EO Objects for Manipulations with DOM
- Host: GitHub
- URL: https://github.com/h1alexbel/eo-dom
- Owner: h1alexbel
- License: mit
- Created: 2024-12-30T18:31:55.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-01-03T19:32:05.000Z (about 1 month ago)
- Last Synced: 2025-01-03T20:20:37.417Z (about 1 month ago)
- Topics: dom-manipulation, eolang, xml
- Language: Java
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# EO objects for DOM manipulation
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![DevOps By Rultor.com](http://www.rultor.com/b/h1alexbel/eo-dom)](http://www.rultor.com/p/h1alexbel/eo-dom)
[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)[EO] objects for manipulations with [DOM].
**Motivation**. [EO], an experimental programming language lacks objects for
XML manipulation. `eo-dom` offers standard [objects](#objects) for building,
traversing XML documents using [DOM] and [XPath].## Objects
Here is how it works:
```eo
+package org.eolang.dom[] > creates-document-from-string
(doc "").as-string > @ #[] > creates-document-from-file
(doc "data.xml").as-string > @ # test[] > locates-element
(doc "data.xml").xpath "//data/text()" # test[] > appends-element
((doc "data.xml").xpath "/root").append "kid" # test
```## How to contribute?
Make sure that you have Java 11+ installed on your system, then fork this
repository, make changes, send us a [pull request][guidelines]. We will
review your changes and apply them to the `master` branch shortly, provided
they don't violate our quality standards. To avoid frustration, before sending
us your pull request please run full build:```bash
mvn clean install -Pqulice
```[EO]: https://www.eolang.org
[DOM]: https://en.wikipedia.org/wiki/Document_Object_Model
[XPath]: https://en.wikipedia.org/wiki/XPath
[guidelines]: https://www.yegor256.com/2014/04/15/github-guidelines.html