[studxml-users] Attribute mapping

Boris Kolpackov boris at codesynthesis.com
Mon Jun 19 12:55:24 EDT 2017


Ramisés Martins da Silva <ramises.silva at kryptus.com> writes:

> If I use attributes_map I get an exception if I don't treat all the
> attributes, I wonder if there isn't a way to disable the throwing so I can
> actually just deal with the attributes that I need.

>From xml/parser.hxx:

    // Low-level attribute map access. Note that this API assumes
    // all attributes are handled.
    //

    [...]

    const attribute_map_type&
    attribute_map () const;

So if you want to "mark" all the attributes as handled, simply call this
function.

Boris



More information about the studxml-users mailing list