EO objects for manipulations with DOM.
Motivation. EO, an experimental programming language lacks objects for
XML manipulation. eo-dom
offers standard objects for building,
traversing XML documents using DOM and XPath.
Here is how it works:
+alias org.eolang.dom.doc
+alias org.eolang.dom.dom-parser
[] > finds-element-at-index
dom-parser.parse-from-string > doc
"<books><book title='Object Thinking'/><book title='Elegant Objects Vol 1.'/></books>"
doc.get-elements-by-tag-name "book" > books
books.at 0 > first
first.get-attribute "title" > title
eq. > @
title
"Object Thinking"
Make sure that you have Java 11+ installed on your system, then fork this
repository, make changes, send us a pull request. 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:
mvn clean install -Pqulice