Bastien Orivel
f87e2442d4
Use a BTreeMap<String, String> instead of a Vec<Attribute> to store attributes
...
This way we don't need to reimplement PartialEq for Element. It's also
way easier to get an attribute by name as we don't need to iterate over
every attribute to see if it exists.
The only side effect is that now, in the Debug output, attributes are
automatically sorted by names instead of being sorted by insertion
order.
Fixes #4
2017-04-26 23:44:58 +02:00
lumi
7c04aff416
overhauling the library, made tests pass
2017-03-08 20:34:17 +01:00
lumi
112b3fa0c8
added documentation url and fixed a dumb mistake
2017-02-25 15:43:56 +01:00
lumi
9a00c998ae
add a test for an issue with namespace propagation
2017-02-25 00:10:18 +01:00
lumi
0a45a6993e
document all the things!
2017-02-21 15:46:06 +01:00
lumi
e0b35477cd
add ElementBuilder::text
2017-02-20 23:58:44 +01:00
lumi
41e1cf2654
added has_child, fixed some warnings
2017-02-20 02:04:45 +01:00
lumi
663eba6754
implemented text, get_child and get_child_mut; added and updated some tests
2017-02-19 23:42:31 +01:00
lumi
2d97e2d5d9
put Attribute into its own module, take into account prefixes when determining namespaces
2017-02-19 23:29:19 +01:00
lumi
8663a14040
lots of fixes and simplifications of the API
2017-02-19 23:15:43 +01:00
lumi
fda38ff242
add child iterators and fix up some of the tests, which still do not pass (yet)
2017-02-19 21:45:51 +01:00
lumi
28045361f3
initial commit
2017-02-19 20:46:44 +01:00