tax
tax
Tree API for XML Bindings for libXML2 Tree API
Installation
Add this to your application's shard.yml
:
dependencies:
tax:
github: vonKingsley/tax
Usage
require "tax"
doc = Tax::Document.new
root = Tax::Element.new("root")
namespace = Tax::NS.new("abc", "uri:tax:code")
parent = Tax::Element.new("parent", namespace, ns_define: true)
child = Tax::Element.new("child", namespace)
parent.add_child(child)
root.add_child(parent)
doc.root = root
#=><?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<root>\n <abc:parent xmlns:abc=\"uri:tax:code\">\n <abc:child/>\n </abc:parent>\n</root>\n
Contributing
- Fork it ( https://github.com/vonKingsley/tax/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- vonKingsley vonKingsley - creator, maintainer
Repository
tax
Owner
Statistic
- 0
- 0
- 0
- 0
- 0
- almost 5 years ago
- September 30, 2017
License
MIT License
Links
Synced at
Mon, 18 Nov 2024 04:26:29 GMT
Languages