Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

PXmlNode< PXmlObject > Protocol Reference

#import <xmlnode.h>

List of all members.

Public Member Functions

(xmlElementType) type
(XmlNodeStatestate
(const xmlChar *) name
(id) setName:
(int) lineNo
(BOOL) isBlankText
(id< PXmlNode >) next
(id< PXmlNode >) next:
(id< PXmlNode >) next:or:
(id< PXmlNode >) parent
(id< PXmlNode >) child
(id< PXmlNode >) child:
(id< PXmlNode >) child:or:
(id< PXmlNode >) lastChild
(id< PXmlNode >) lastChild:
(id< PXmlNode >) lastChild:or:
(id) addChild:withFollowers:
(id) duplicate:
(id) unlink:
(id) print:


Detailed Description

PXmlNode Public interface for XmlNode class. Public interface for XmlNode class.


Member Function Documentation

- (id PXmlNode< PXmlObject >): (id) 
(id< PXmlNode< PXmlObject > >) 
(id)  node
withFollowers: (id) 
(BOOL) 
(id)  follwers
 

addChild Add node to the node as children.

Parameters:
node Source node list to add.
followers If this is true, followers are also added as children. Add node (and it's followers) to the node as children. Before adding node, the node is duplicated.

- (id <PXmlNode> PXmlNode< PXmlObject >):
 

child Get 1st child node.

Returns:
1st child or nil if it is not found. Get 1st child node. If it is not found, nil is returned.

- (id <PXmlNode> PXmlNode< PXmlObject >): (id) 
(xmlElementType) 
(id)  type
 

child Get child which has given type.

Returns:
Child node or nil (when it is not found).
Parameters:
type Type of node to search. Get child which has given type. If it is not found, nil is returned.
Warning:
The blank text node is ignored in this methid.

- (id <PXmlNode> PXmlNode< PXmlObject >): (id) 
(xmlElementType) 
(id)  typ1
or: (id) 
(xmlElementType) 
(id)  typ2
 

child Get child node which matches given types.

Returns:
Child node or nil (when it is not found).
Parameters:
typ1 Type to search.
typ2 Other type to search. Get child node which has given types. If it is not found, nil is returned.
Warning:
The blank text node is ignored in this methid.

- (id PXmlNode< PXmlObject >): (id) 
(BOOL) 
(id)  withchild
 

duplicate Duplicate the node.

Parameters:
withchild Set true the duplication of children of the node is required. Duplicate the node. If "withchild" is true, all children also copied.

- (BOOL PXmlNode< PXmlObject >):
 

isBlankText Return true if node is empty text node.

Returns:
True if the node is empty text node. Return true when the node is text node and contains only spaces. If the parameter is not text node, this method returns false.

- (id <PXmlNode> PXmlNode< PXmlObject >):
 

lastChild Get last child node.

Returns:
Last child or nil if it is not found. Get last child node. If it is not found, nil is returned.

- (id <PXmlNode> PXmlNode< PXmlObject >): (id) 
(xmlElementType) 
(id)  type
 

lastChild Get last child which has given type.

Returns:
Child node or nil (when it is not found).
Parameters:
type Type of node to search. Get last child which has given type. If it is not found, nil is returned.
Warning:
The blank text node is ignored in this methid.

- (id <PXmlNode> PXmlNode< PXmlObject >): (id) 
(xmlElementType) 
(id)  typ1
or: (id) 
(xmlElementType) 
(id)  typ2
 

lastChild Get last child node which matches given types.

Returns:
Child node or nil (when it is not found).
Parameters:
typ1 Type to search.
typ2 Other type to search. Get last child node which has given types. If it is not found, nil is returned.
Warning:
The blank text node is ignored in this methid.

- (int PXmlNode< PXmlObject >):
 

lineNo Get line number which contains the node.

Returns:
If the value is found, return the positive value. But it is not found, returns negative value. Get line number of the input file which contains the node.

- (const xmlChar * PXmlNode< PXmlObject >):
 

name Get name of element node.

Returns:
Name of the element node. If source node is not element node, the result will be null, Get name of element node. If source node is not element node, the result will be null,

- (id <PXmlNode> PXmlNode< PXmlObject >):
 

next Get next sibling. Get next sibling. If it is not found, nil is returned.

Returns:
Next sibling node or nil (when it is not found).

- (id <PXmlNode> PXmlNode< PXmlObject >): (id) 
(xmlElementType) 
(id)  type
 

next Get next sibling which matches given type.

Returns:
Next sibling node or nil (when it is not found).
Parameters:
type Type to search. Get next sibling which has given type. If it is not found, nil is returned.

- (id <PXmlNode> PXmlNode< PXmlObject >): (id) 
(xmlElementType) 
(id)  typ1
or: (id) 
(xmlElementType) 
(id)  typ2
 

next Get next sibling which matches given types.

Returns:
Next sibling node or nil (when it is not found).
Parameters:
typ1 Type to search.
typ2 Other type to search. Get next sibling which has given types. If it is not found, nil is returned.

- (id <PXmlNode> PXmlNode< PXmlObject >):
 

parent Get parent node.

Returns:
Parent node or nil (when it is root node). Get parent node. If it is not found, nil is returned.

- (id PXmlNode< PXmlObject >): (id) 
(FILE *) 
(id)  outfp
 

print Print the content of node.

Parameters:
outfp Output file stream.
Returns:
Return nil if execution is failed. Print the content of node. If some error occured, this method returns nil.

- (id PXmlNode< PXmlObject >): (id) 
(const xmlChar *) 
(id)  name
 

setName Set name of the element node.

Parameters:
name 

- (XmlNodeState PXmlNode< PXmlObject >):
 

state Get state of the node. Get state of the node.

Returns:
State of the node.

- (xmlElementType PXmlNode< PXmlObject >):
 

type Get type of source node. Get type of source node.

Returns:
Type of source node.

- (id PXmlNode< PXmlObject >): (id) 
(BOOL) 
(id)  withfollowers
 

unlink Unlink the connection of the node.

Parameters:
withfollowers Set true if you want to unlink all followers of the node. Unlink the connection of the node.


The documentation for this protocol was generated from the following file:
Generated on Sat Feb 14 12:03:39 2004 for LibXmlKit by doxygen 1.3.6