PrevNextUpHome BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1
SFXXMLDocumentFragment
[XML] Class that represents a DocumentFragment node.
#include <SFXXMLDocumentFragment.hpp>
class SFXXMLDocumentFragment : public SFXXMLNode;
SFMTYPEDEFCLASS(SFXXMLDocumentFragment)

Inheritance diagram

 Inheritance diagram of SFXXMLDocumentFragmentClass

Collaboration diagram

 Collaboration diagram of SFXXMLDocumentFragmentClass

Description

A DocumentFragment node(SFXXMLDocumentFragment) contains a document fragment of the XML document.

Reference

SFXXMLNode | SFXXMLAttribute | SFXXMLCDATASection | SFXXMLComment | SFXXMLDocument | SFXXMLDocumentType | SFXXMLElement | SFXXMLEntity | SFXXMLEntityReference | SFXXMLNotation | SFXXMLProcessingInstruction | SFXXMLText

Member

Constructor/Destructor
SFXXMLDocumentFragment( SFXXMLDocumentPtr owner )
Constructor of SFXXMLDocumentFragment class.
SFXXMLDocumentFragment( SFXXMLDocumentFragmentConstRef other , Bool deep = false )
Constructor of SFXXMLDocumentFragment class.
~SFXXMLDocumentFragment( Void )
Destructor of SFXXMLDocumentFragment class.
Public Functions
SFCError CloneNode( SFXXMLNodeHandle clonenode , Bool deep )
Create a copy of this node.
ACharConstPtr GetNodeName( Void )
Get the node name.
NodeType GetNodeType( Void )
Get the node type.
SFCError AppendChild( SFXXMLNodeConstPtr newchild ) (inherits from SFXXMLNode)
Append a specified child node at the end.
Bool EqualNode( SFXXMLNodeConstPtr arg ) (inherits from SFXXMLNode)
Check whether this node equals a specified node or not.
DOMNodeListPtr GetChildNodes( Void ) (inherits from SFXXMLNode)
Get all the child nodes.
SFXXMLNodePtr GetFirstChild( Void ) (inherits from SFXXMLNode)
Get the first child node.
SFXXMLNodePtr GetLastChild( Void ) (inherits from SFXXMLNode)
Get the last child node.
SFXXMLNodePtr GetNextSibling( Void ) (inherits from SFXXMLNode)
Get the next sibling node.
ACharConstPtr GetNodeValue( Void ) (inherits from SFXXMLNode)
Get the node value.
SFXXMLNodePtr GetParentNode( Void ) (inherits from SFXXMLNode)
Get the parent node.
SFXXMLNodePtr GetPreviousSibling( Void ) (inherits from SFXXMLNode)
Get the previous sibling node.
SFXAnsiString GetText( Void ) (inherits from SFXXMLNode)
Get the node text.
Bool HasChildNodes( Void ) (inherits from SFXXMLNode)
Check whether this node has any child nodes or not.
SFCError InsertBefore( SFXXMLNodeConstPtr newchild , SFXXMLNodeConstPtr refchild ) (inherits from SFXXMLNode)
Insert a specified node.
Bool IsSameNode( SFXXMLNodeConstPtr other ) (inherits from SFXXMLNode)
Check whether this node is the same as a specified one or not.
SFCError RemoveChild( SFXXMLNodeConstPtr oldchild ) (inherits from SFXXMLNode)
Remove a specified child node including its descendant nodes.
SFCError ReplaceChild( SFXXMLNodeConstPtr newchild , SFXXMLNodeConstPtr oldchild ) (inherits from SFXXMLNode)
Replace a specified child node.
Void SetNodeValue( ACharConstPtr value ) (inherits from SFXXMLNode)
Set the node value.
SFCError SetText( SFXAnsiStringConstRef text ) (inherits from SFXXMLNode)
Set the node text.
Types
DOMNamedNodeMap (inherits from SFXXMLNode)
Class to manage the DOM nodes by name
DOMNodeList (inherits from SFXXMLNode)
Class to manage the DOM nodes by list
NodeType (inherits from SFXXMLNode)
SFXXMLNode::NodeType is an enumeration type of NodeType values defined in the W3C DOM Level 1 Specification. Document Object Model (DOM) Level 1 Specification )

SFXXMLDocumentFragment::SFXXMLDocumentFragment
Constructor of SFXXMLDocumentFragment class.
[ public, explicit ]
SFXXMLDocumentFragment(
    SFXXMLDocumentPtr owner   // root node of the DOM tree
);
[ public, explicit ]
SFXXMLDocumentFragment(
    SFXXMLDocumentFragmentConstRef other   // DocumentFragment node
    Bool deep = false                      // whether or not to copy child nodes recursively
);

SFXXMLDocumentFragment::~SFXXMLDocumentFragment
Destructor of SFXXMLDocumentFragment class.
[ public, virtual ]
virtual ~SFXXMLDocumentFragment(Void);

SFXXMLDocumentFragment::CloneNode
Create a copy of this node.
[ public, virtual ]
SFCError CloneNode(
    SFXXMLNodeHandle clonenode   // target node where to copy this node(Handle type)
    Bool deep                    // whether or not to copy the child nodes recursively
);

Argument

clonenode

Specify the target node where to copy this node.

deep

If true is set to this argument, copy the child nodes recursively.

Otherwise, copy only this node.

Return value

  • Success : SFERR_NO_ERROR
  • If failed : SFERR_FAILED

Reference

SFXXMLNode::CloneNode | SFXXMLNode


SFXXMLDocumentFragment::GetNodeName
Get the node name.
[ public, virtual, const ]
ACharConstPtr GetNodeName(Void);

Return value

Return the "#document-fragment" string.

Reference

SFXXMLNode::GetNodeName | SFXXMLNode


SFXXMLDocumentFragment::GetNodeType
Get the node type.
[ public, virtual, const ]
NodeType GetNodeType(Void);

Return value

Return DOCUMENT_FRAGMENT_NODE.

Reference

SFXXMLNode::NodeType | SFXXMLNode::GetNodeType | SFXXMLNode