Xport Interface: markup::attributes

For a derived element object, retrieves all attribute values, or clears all attributes.

virtual std::map<xhtml_attribute, std::string>* markup::attributes();1st Variety
virtual const std::map<xhtml_attribute, std::string>* markup::attributes()2nd Variety

Parameters

None

Returns

Returns a pointer (or const pointer in the 2nd variety) to the attributes map for a derived element object.

Remarks

This operation is revelant only if it is called on a derived element object. If called on a pcdata, comment, or procinstr object, an empty attribute map will be returned.

When called on a derived element object, a pointer (or const pointer in the 2nd variety) is to the element's attribute map is returned. In this map, the key type is xhtml_attribute enumerators, and the value type is a string representing the value for the corrasponding attribute.

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.