6f0e88b25b
Instead of adding the local_name of an attribute, if a prefix exists, add prefix:local_name to allow users to retrieve it via the namespaced key name. For example, with this XML: ``` <?xml version="1.0" encoding="utf-8"?> <root xml:lang="en" > </root> ``` `root.attr("xml:lang").unwrap()` will now correctly return "en". `root.attr("lang")` will not retrieve "xml:lang" value anymore. This is a breaking change. Fixes #2 |
||
---|---|---|
examples | ||
src | ||
.gitignore | ||
.gitlab-ci.yml | ||
Cargo.toml | ||
COPYING | ||
COPYING.LESSER | ||
README.md |
minidom-rs
What's this?
A minimal DOM library on top of xml-rs.
What license is it under?
LGPLv3 or later. See COPYING
and COPYING.LESSER
.
License yadda yadda.
Copyright 2017, minidom-rs contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.