DCMTK: Create or Update the XMLNode structure

DCMTK Version 3.6.9 OFFIS DICOM Toolkit

Loading...
Searching...
No Matches
Topics
Create or Update the XMLNode structure
The XML parser

The functions in this group allows you to create from scratch (or update) a XMLNode structure. More...

## Topics
| Creating from scratch a XMLNode structure
| Updating Nodes
| Some update functions:
| Deleting Nodes or Attributes
| Some deletion functions:
| ???_WOSD functions.
| The strings given as parameters for the "add" and "update" methods that have a name with the postfix "_WOSD" (that means "WithOut String Duplication")(for example "addText_WOSD") will be free'd by the XMLNode class.
| Position helper functions (use in conjunction with the update&add functions)
| These are some useful functions when you want to insert a childNode, a text or a XMLClearTag in the middle (at a specified position) of a XMLNode tree already constructed.
| String Allocation/Free functions

## Detailed Description

The functions in this group allows you to create from scratch (or update) a XMLNode structure.

Start by creating your top node with the "createXMLTopNode" function and then add new nodes with the "addChild" function. The parameter 'pos' gives the position where the childNode, the text or the XMLClearTag will be inserted. The default value (pos=-1) inserts at the end. The value (pos=0) insert at the beginning (Insertion at the beginning is slower than at the end).

REMARK: 0 <= pos < nChild()+nText()+nClear()

Generated on Wed Apr 30 2025 for DCMTK Version 3.6.9 by Doxygen 1.13.2