rtXmlNamespace.h File ReferenceXML namespace handling structures and function definitions. More...
#include "rtxmlsrc/osrtxml.h"
Go to the source code of this file.
Detailed Description
XML namespace handling structures and function definitions.
Definition in file rtXmlNamespace.h.
Function Documentation
|
|
This function adds a namespace to the context namespace list.
- Parameters:
-
| pctxt | Pointer to OSCTXT structure |
| prefix | Namespace prefix to be added |
| uri | Namespace URI to be added |
- Returns:
- Pointer to namespace structure or NULL if not added.
|
|
|
This function gets the namespace prefix assigned to the given URI.
- Parameters:
-
| pctxt | Pointer to OSCTXT structure |
| uri | Namespace URI to be searched for |
- Returns:
- Pointer to namespace prefix string
|
|
|
This function looks up a namespace in the context namespace list using URI as the key value.
- Parameters:
-
| pctxt | Pointer to OSCTXT structure |
| uri | Namespace URI to be found. |
- Returns:
- Pointer to namespace structure or NULL if not found.
|
| void rtXmlNSRemoveAll |
( |
OSCTXT * |
pctxt |
) |
|
|
|
|
This function removes all namespaces from the context namespace list and frees the dynamic memory used to hold the names.
- Parameters:
-
| pctxt | Pointer to OSCTXT structure |
|
|
|
This function sets a namespace in the context namespace list.
If the given namespace URI does not exist in the list, the namespace is added. If the URI is found, the action depends on the value of the override flag. If true, the value of the namespace prefix will be changed to the given prefix. If false, the existing namespace specification is not altered.
- Parameters:
-
| pctxt | Pointer to OSCTXT structure |
| prefix | Namespace prefix |
| uri | Namespace URI |
| override | Should existing definition be changed? |
- Returns:
- Pointer to namespace structure or NULL if not set.
|
|