0.4.0
Most of the changes involve improving the handling of start tag attributes. dxml.parser.getAttrs
in particular is likely to be of interest to those looking to reduce the amount of code necessary when dealing with start tag attributes.
-
The deprecated aliases,
dxml.util.normalize
anddxml.util.asNormalized
, have been removed. Any code that has not yet been updated to usedecodeXML
andasDecodedXML
will no longer compile until it's been updated. -
EntityRange.Entity
andDOMEntity
now have an alias namedAttribute
which contains the exact instantiation ofstd.typecons.Tuple
that theirattributes
functions return ranges of. This will make it easier to refer to them by their exact type when required (e.g. when creating an output range of them). -
The trait
dxml.parser.isAttrRange
has been added. It's true if the given type is a range of attributes such as those returned byEntityRange.Entity.attributes
andDOMEntity.attributes
. -
The function
dxml.parser.getAttrs
has been added. It's essentially the XML attribute equivalent ofgetopt
. -
Fixed dxml issue #10: Made internal function,
skipStartsWith
leveragestd.algorithm.searching.skipOver
-
EntityRange
now usesAppender
internally instead of using dynamic arrays directly for handling the validation of tags and attributes, since benchmarking indicated that usingAppender
was slightly faster.