4 #ifndef RUDIMENTS_XMLDOMNODE_H 5 #define RUDIMENTS_XMLDOMNODE_H 7 #include <rudiments/private/xmldomnodeincludes.h> 10 NULL_XMLDOMNODETYPE=0,
13 ATTRIBUTE_XMLDOMNODETYPE,
15 COMMENT_XMLDOMNODETYPE,
20 class xmldomnodeprivate;
179 void cascadeOnDelete();
184 void dontCascadeOnDelete();
188 xmldomnodetype getType()
const;
191 const char *getNamespace()
const;
194 const char *getName()
const;
197 const char *getValue()
const;
210 uint64_t getPosition()
const;
224 xmldomnode *getPreviousTagSibling(
const char *name)
const;
231 const char *name)
const;
236 xmldomnode *getPreviousTagSiblingIgnoringCase(
237 const char *name)
const;
242 xmldomnode *getPreviousTagSiblingIgnoringCase(
244 const char *name)
const;
257 const char *attributename,
258 const char *attributevalue)
const;
272 const char *attributename,
273 const char *attributevalue)
const;
283 xmldomnode *getPreviousTagSiblingIgnoringCase(
285 const char *attributename,
286 const char *attributevalue)
const;
297 xmldomnode *getPreviousTagSiblingIgnoringCase(
300 const char *attributename,
301 const char *attributevalue)
const;
315 xmldomnode *getNextTagSibling(
const char *name)
const;
321 const char *name)
const;
327 const char *name)
const;
334 const char *name)
const;
347 const char *attributename,
348 const char *attributevalue)
const;
361 const char *attributename,
362 const char *attributevalue)
const;
374 const char *attributename,
375 const char *attributevalue)
const;
388 const char *attributename,
389 const char *attributevalue)
const;
396 const char *
const *
set)
const;
405 const char *
const *
set)
const;
409 uint64_t getChildCount()
const;
413 xmldomnode *getFirstChild(
const char *name)
const;
418 const char *name)
const;
423 const char *name)
const;
430 const char *name)
const;
434 xmldomnode *getChild(uint64_t position)
const;
445 const char *attributename,
446 const char *attributevalue)
459 const char *attributename,
460 const char *attributevalue)
473 const char *attributename,
474 const char *attributevalue)
487 const char *attributename,
488 const char *attributevalue)
499 xmldomnode *getFirstTagChild(
const char *name)
const;
505 const char *name)
const;
511 const char *name)
const;
519 const char *name)
const;
532 const char *attributename,
533 const char *attributevalue)
const;
545 const char *attributename,
546 const char *attributevalue)
const;
558 const char *attributename,
559 const char *attributevalue)
const;
572 const char *attributename,
573 const char *attributevalue)
const;
580 const char *
const *
set)
const;
589 const char *
const *
set)
const;
595 xmldomnode *getFirstTagDescendent(
const char *name)
const;
603 const char *name)
const;
609 xmldomnode *getFirstTagDescendentIgnoringCase(
610 const char *name)
const;
617 xmldomnode *getFirstTagDescendentIgnoringCase(
619 const char *name)
const;
632 const char *attributename,
633 const char *attributevalue)
const;
645 const char *attributename,
646 const char *attributevalue)
const;
656 xmldomnode *getFirstTagDescendentIgnoringCase(
658 const char *attributename,
659 const char *attributevalue)
const;
669 xmldomnode *getFirstTagDescendentIgnoringCase(
672 const char *attributename,
673 const char *attributevalue)
const;
680 const char *
const *
set)
const;
688 const char *
const *
set)
const;
714 uint64_t getAttributeCount()
const;
718 xmldomnode *getAttribute(
const char *name)
const;
723 const char *name)
const;
727 xmldomnode *getAttribute(uint64_t position)
const;
731 const char *getAttributeValue(
const char *name)
const;
736 const char *getAttributeValue(uint64_t position)
const;
745 constnamevaluepairs *getAttributes()
const;
750 void setAttributeValue(
const char *name,
756 void setAttributeValue(
const char *name,
762 void setAttributeValue(
const char *name,
770 bool isNullNode()
const;
774 void setType(xmldomnodetype type);
777 void setNamespace(
const char *ns);
780 void setName(
const char *name);
783 void setName(
const char *ns,
const char *name);
786 void setValue(
const char *value);
792 void setPreviousSibling(
xmldomnode *previous);
800 bool insertChild(
xmldomnode *child, uint64_t position);
812 xmldomnode *insertTag(
const char *tag, uint64_t position);
830 bool insertXml(
const char *xml, uint64_t position);
838 bool insertXmlFile(
const char *xmlfile, uint64_t position);
852 xmldomnode *appendTag(
const char *ns,
const char *tag);
858 bool appendXml(
const char *xml);
864 bool appendXmlFile(
const char *xmlfile);
877 bool deleteChild(uint64_t position);
889 bool deleteFirstChild(
const char *name);
894 bool deleteFirstChild(
const char *ns,
const char *name);
899 bool deleteFirstChildIgnoringCase(
const char *name);
904 bool deleteFirstChildIgnoringCase(
const char *ns,
916 bool deleteFirstChild(
const char *name,
917 const char *attributename,
918 const char *attributevalue);
929 bool deleteFirstChild(
const char *ns,
931 const char *attributename,
932 const char *attributevalue);
942 bool deleteFirstChildIgnoringCase(
944 const char *attributename,
945 const char *attributevalue);
955 bool deleteFirstChildIgnoringCase(
958 const char *attributename,
959 const char *attributevalue);
962 bool deleteChildren();
965 bool deleteChildren(
const char *name);
969 bool deleteChildren(
const char *ns,
const char *name);
972 bool deleteChildrenIgnoringCase(
const char *name);
976 bool deleteChildrenIgnoringCase(
const char *ns,
988 bool deleteChildren(
const char *name,
989 const char *attributename,
990 const char *attributevalue);
1001 bool deleteChildren(
const char *ns,
1003 const char *attributename,
1004 const char *attributevalue);
1014 bool deleteChildrenIgnoringCase(
1016 const char *attributename,
1017 const char *attributevalue);
1027 bool deleteChildrenIgnoringCase(
1030 const char *attributename,
1031 const char *attributevalue);
1034 bool deleteDescendents(
const char *name);
1038 bool deleteDescendents(
const char *ns,
1042 bool deleteDescendentsIgnoringCase(
const char *name);
1046 bool deleteDescendentsIgnoringCase(
const char *ns,
1058 bool deleteDescendents(
const char *name,
1059 const char *attributename,
1060 const char *attributevalue);
1071 bool deleteDescendents(
const char *ns,
1073 const char *attributename,
1074 const char *attributevalue);
1084 bool deleteDescendentsIgnoringCase(
1086 const char *attributename,
1087 const char *attributevalue);
1097 bool deleteDescendentsIgnoringCase(
1100 const char *attributename,
1101 const char *attributevalue);
1106 bool renameFirstChild(
const char *oldname,
1107 const char *newname);
1112 bool renameFirstChild(
const char *oldns,
1113 const char *oldname,
1115 const char *newname);
1119 bool renameFirstChildIgnoringCase(
const char *oldname,
1120 const char *newname);
1125 bool renameFirstChildIgnoringCase(
const char *oldns,
1126 const char *oldname,
1128 const char *newname);
1132 bool renameChildren(
const char *oldname,
1133 const char *newname);
1137 bool renameChildren(
const char *oldns,
1138 const char *oldname,
1140 const char *newname);
1144 bool renameChildrenIgnoringCase(
const char *oldname,
1145 const char *newname);
1150 bool renameChildrenIgnoringCase(
const char *oldns,
1151 const char *oldname,
1153 const char *newname);
1157 bool renameDescendents(
const char *oldname,
1158 const char *newname);
1162 bool renameDescendents(
const char *oldns,
1163 const char *oldname,
1165 const char *newname);
1169 bool renameDescendentsIgnoringCase(
1170 const char *oldname,
1171 const char *newname);
1176 bool renameDescendentsIgnoringCase(
1178 const char *oldname,
1180 const char *newname);
1187 bool insertText(
const char *value, uint64_t position);
1191 bool appendText(
const char *value);
1206 bool insertAttribute(
const char *name,
const char *value,
1211 bool appendAttribute(
const char *name,
const char *value);
1216 bool deleteAttribute(uint64_t position);
1222 bool deleteAttribute(
const char *name);
1239 bool unwrapFirstChild(
const char *name);
1243 bool unwrapFirstChild(
const char *ns,
const char *name);
1247 bool unwrapFirstChildIgnoringCase(
const char *name);
1252 bool unwrapFirstChildIgnoringCase(
const char *ns,
1257 bool unwrapChildren(
const char *name);
1261 bool unwrapChildren(
const char *ns,
const char *name);
1265 bool unwrapChildrenIgnoringCase(
const char *name);
1270 bool unwrapChildrenIgnoringCase(
const char *ns,
1275 bool unwrapDescendents(
const char *name);
1279 bool unwrapDescendents(
const char *ns,
const char *name);
1283 bool unwrapDescendentsIgnoringCase(
const char *name);
1288 bool unwrapDescendentsIgnoringCase(
const char *ns,
1343 xmldomnode *wrapChildren(
const char *ns,
const char *name);
1387 xmldomnode *getChildByPath(
const char *path)
const;
1397 xmldomnode *getAttributeByPath(
const char *path,
1398 uint64_t position)
const;
1407 xmldomnode *getAttributeByPath(
const char *path,
1408 const char *name)
const;
1418 const char *getAttributeValueByPath(
const char *path,
1419 uint64_t position)
const;
1429 const char *getAttributeValueByPath(
const char *path,
1430 const char *name)
const;
1433 void setData(
void *data);
1439 #include <rudiments/private/xmldomnode.h> Definition: xmldomnode.h:123
Definition: stringbuffer.h:22
Definition: filedescriptor.h:14