Poco::XML

class ProcessingInstruction

Library: XML
Package: DOM
Header: Poco/DOM/ProcessingInstruction.h

Description

The ProcessingInstruction interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.

Inheritance

Direct Base Classes: AbstractNode

All Base Classes: AbstractNode, DOMObject, EventTarget, Node

Member Summary

Member Functions: copyNode, data, getData, getNodeValue, nodeName, nodeType, setData, setNodeValue, target

Inherited Functions: addEventListener, appendChild, attributes, autoRelease, bubbleEvent, captureEvent, childNodes, cloneNode, copyNode, dispatchAttrModified, dispatchCharacterDataModified, dispatchEvent, dispatchNodeInserted, dispatchNodeInsertedIntoDocument, dispatchNodeRemoved, dispatchNodeRemovedFromDocument, dispatchSubtreeModified, duplicate, events, eventsSuspended, firstChild, getNodeByPath, getNodeByPathNS, getNodeValue, hasAttributes, hasChildNodes, innerText, insertAfterNP, insertBefore, isSupported, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, normalize, ownerDocument, parentNode, prefix, previousSibling, release, removeChild, removeEventListener, replaceChild, setNodeValue, setOwnerDocument

Constructors

ProcessingInstruction protected

ProcessingInstruction(
    Document * pOwnerDocument,
    const ProcessingInstruction & processingInstruction
);

ProcessingInstruction protected

ProcessingInstruction(
    Document * pOwnerDocument,
    const XMLString & target,
    const XMLString & data
);

Destructor

~ProcessingInstruction protected virtual

~ProcessingInstruction();

Member Functions

data inline

const XMLString & data() const;

Returns the content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.

getData inline

const XMLString & getData() const;

Returns the content of this processing instruction. This is from the first non white space character after the target to the character immediately preceding the ?>.

getNodeValue virtual

const XMLString & getNodeValue() const;

nodeName virtual

const XMLString & nodeName() const;

nodeType virtual

unsigned short nodeType() const;

setData

void setData(
    const XMLString & data
);

Sets the content of this processing instruction.

setNodeValue virtual

void setNodeValue(
    const XMLString & data
);

target inline

const XMLString & target() const;

Returns the target of this processing instruction. XML defines this as being the first token following the markup that begins the processing instruction.

copyNode protected virtual

Node * copyNode(
    bool deep,
    Document * pOwnerDocument
) const;