/usr/include/libxml++-2.6/libxml++/attribute.h is in libxml++2.6-dev 2.36.0-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | /* attribute.h
* libxml++ and this file are copyright (C) 2000 by Ari Johnson, and
* are covered by the GNU Lesser General Public License, which should be
* included with libxml++ as the file COPYING.
*/
#ifndef __LIBXMLPP_ATTRIBUTE_H
#define __LIBXMLPP_ATTRIBUTE_H
#include <glibmm/ustring.h>
#include <libxml++/nodes/node.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
extern "C" {
struct _xmlAttr;
}
#endif //#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace xmlpp
{
/** Represents an XML Node attribute.
* This will be instantiated by the parser.
*/
class Attribute : public Node
{
public:
explicit Attribute(_xmlNode* node);
virtual ~Attribute();
//TODO: Can we remove this and just use Node::get_name()?
// Yes, when we can break ABI. /Kjell Ahlstedt 2012-02-09
/** Get the name of this attribute.
* See also Node::get_namespace_prefix() and Node::get_namespace_uri()
* @returns The attribute's name.
*/
Glib::ustring get_name() const;
/** Get the value of this attribute.
* Can be used for both an AttributeDeclaration and an AttributeNode.
* @returns The attribute's value.
*/
Glib::ustring get_value() const;
/** Set the value of this attribute.
*
* If this is an AttributeDeclaration, the value will not be changed.
* This method is here for backward compatibility. It may be moved to
* AttributeNode in the future.
*/
void set_value(const Glib::ustring& value);
/** Access the underlying libxml implementation.
*
* If this is an AttributeDeclaration, use AttributeDeclaration::cobj() instead.
* This method is here for backward compatibility. It may be moved to
* AttributeNode in the future.
*/
_xmlAttr* cobj();
/** Access the underlying libxml implementation.
*
* If this is an AttributeDeclaration, use AttributeDeclaration::cobj() instead.
* This method is here for backward compatibility. It may be moved to
* AttributeNode in the future.
*/
const _xmlAttr* cobj() const;
};
} // namespace xmlpp
#endif //__LIBXMLPP_ATTRIBUTE_H
|