Poco::RemotingNG::SOAP

struct XMLElement

File Information

Library: RemotingNG/SOAP
Package: SOAP
Header: Poco/RemotingNG/SOAP/XMLElement.h

Description

This class provides access to XML elements in the SOAP envelope header to interceptors.

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 inline

const Poco::XML::AttributesImpl & attributes() const;

Returns the attributes of the element.

attributes

Poco::XML::AttributesImpl & attributes();

Returns the attributes of the element.

children inline

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 inline

const std::string & localName() const;

Returns the local name of the element.

namespaceURI inline

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 inline

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;

Securely control IoT edge devices from anywhere   Connect a Device