#include <LibXmlKit/xmlnode.h>
#include <LibXmlKit/xmlmem.h>
Functions | |
| if (src==NULL) return nil | |
| return | xml_mem_node_ptr2obj (newnode) |
| id | initXmlNode: (id, xmlNodePtr, id node, id, id xml_node_ptr, id, id node,) |
| xmlElementType | type () |
| XmlNodeState | node_state () |
| xml_node_ptr->type==XML_ELEMENT_NODE | name: (id, id NULL,) |
| void | setName: (id, const xmlChar *, id name, id, id, xml_node_ptr->type==XML_ELEMENT_NODE &&name!=NULL if, xml_node_ptr, name xmlNodeSetName,) |
| id | setAttr:value: (id, const xmlChar *, id name,[value] id, const xmlChar *, id value, id, name==NULL if, id return, id nil,) |
| if (value) | |
| const xmlChar * | getAttrValue: (id, const xmlChar *, id attrname, id, id return, xml_node_ptr, attrname xmlGetProp,) |
| xml_node_ptr | XML_GET_LINE () |
| void | setText:length: (id, const xmlChar *, id src,[length] id, size_t, id len, id, xml_node_ptr, src, len xmlNodeSetContentLen,) |
| xml_node_ptr | xmlNodeGetContent () |
| xml_node_ptr | xmlIsBlankNode () |
| XmlNode * | nextptr () |
| if ((nextptr=xml_node_ptr->next)!=NULL) | |
| XmlNode * | next: (id, xmlElementType, id type, id, id xmlNodePtr, id nextptr,) |
| for (nextptr=xml_node_ptr->next;nextptr;nextptr=nextptr->next) | |
| XmlNode * | next:or: (id, xmlElementType, id typ1,[or] id, xmlElementType, id typ2, id, id xmlNodePtr, id nextptr,) |
| XmlNode * | parentptr () |
| if ((parentptr=xml_node_ptr->parent)!=NULL) | |
| XmlNode * | cptr () |
| if ((cptr=xml_node_ptr->children)!=NULL) | |
| XmlNode * | child: (id, xmlElementType, id type, id, id xmlNodePtr, id cptr,) |
| for (cptr=xml_node_ptr->children;cptr;cptr=cptr->next) | |
| XmlNode * | child:or: (id, xmlElementType, id typ1,[or] id, xmlElementType, id typ2, id, id xmlNodePtr, id cptr,) |
| if ((cptr=xmlGetLastChild(xml_node_ptr))!=NULL) | |
| XmlNode * | lastChild: (id, xmlElementType, id type, id, id xmlNodePtr, id cptr,) |
| XmlNode * | lastChild:or: (id, xmlElementType, id typ1,[or] id, xmlElementType, id typ2, id, id xmlNodePtr, id cptr,) |
| id | addSibling:withFollowers: (id, XmlNode *, id node,[withFollowers] id, BOOL, id followers, id, id xmlNodePtr, id nodeptr,) |
| if (node==nil||(nodeptr=[(XmlNode *) node nodePtr])==NULL) return nil | |
| if (followers) | |
| id | addChild:withFollowers: (id, XmlNode *, id node,[withFollowers] id, BOOL, id followers, id, id xmlNodePtr, id nodeptr,) |
| XmlNode * | duplicate: (id, BOOL, id withchild, id, id xmlNodePtr, id dupnode,) |
| if (withchild) | |
| void | unlink: (id, BOOL, id withfollowers, id, id xmlNodePtr, id node,) |
| if (withfollowers) | |
| else | xmlUnlinkNode (xml_node_ptr) |
| void | replaceBy: (id, XmlNode *, id src, id, xml_node_ptr,[src nodePtr] xmlReplaceNode,) |
| xmlNodePtr | xml_node_ptr () |
| void | print: (id, FILE *, id outfp, id, outfp,"(xml-node("fprintf,) |
| switch (xml_node_ptr->type) | |
| fputs ("))", outfp) | |
Variables | |
| newnode = xmlNewNode(NULL, src) | |
| node_state = XML_NODE_STATE_INIT | |
| return [super init] | |
| else return | nil |
| xmlElementType | ntype |
| xmlNodePtr | lptr = NULL |
| xmlNodePtr | newptr |
| xmlNodePtr | next |
1.3.6