File Information
Library: RemotingNG/SOAP
Package: SOAP
Header: Poco/RemotingNG/SOAP/XMLElement.h
Description
Member Summary
Member Functions: addChild, attributes, children, findChild, localName, namespaceURI, operator =, setAttribute, value
Constructors
XMLElement
XMLElement() = default;
XMLElement
XMLElement(
const XMLElement & element
);
Copy constructor.
XMLElement
XMLElement(
XMLElement && element
) noexcept;
Move constructor.
XMLElement
XMLElement(
const std::string & name,
const std::string & namespaceURI
);
Creates an element with the given local name and namespaceURI.
XMLElement
XMLElement(
const std::string & name,
const std::string & namespaceURI,
const std::string & value
);
Creates an element with the given local, and namespaceURI and text content.
Member Functions
addChild
void addChild(
const XMLElement & child
);
Adds a child element.
addChild
void addChild(
XMLElement && child
);
Adds a child element.
attributes
const Poco::XML::AttributesImpl & attributes() const;
Returns the attributes of the element.
attributes
Poco::XML::AttributesImpl & attributes();
Returns the attributes of the element.
children
const std::vector < XMLElement > & children() const;
Returns the children of the element.
children
std::vector < XMLElement > & children();
Returns the children of the element.
findChild
const XMLElement * findChild(
const std::string & name,
const std::string & namespaceURI
) const;
Finds a child element with the given local name and namespaceURI. Returns a pointer to the XMLElement if found, otherwise nullptr.
localName
const std::string & localName() const;
Returns the local name of the element.
namespaceURI
const std::string & namespaceURI() const;
Returns the namespace URI of the element.
operator =
XMLElement & operator = (
const XMLElement & param629
) = default;
operator =
XMLElement & operator = (
XMLElement && param630
) = default;
setAttribute
void setAttribute(
const std::string & name,
const std::string & namespaceURI,
const std::string & value
);
Sets an attribute value.
value
const std::string & value() const;
Returns the text content of the element.
Variables
_attributes
Poco::XML::AttributesImpl _attributes;
_children
std::vector < XMLElement > _children;
_name
std::string _name;
_uri
std::string _uri;
_value
std::string _value;