Objective Systems, Inc.  
Home
About ASN.1
Products
Free Software
Documents
Services
Resources
Resellers
Customers
Careers
About Us
Contact Us
 

Google


Objective Systems, Inc.

rtXmlNamespace.h File Reference

XML namespace handling structures and function definitions. More...

#include "rtxmlsrc/osrtxml.h"

Go to the source code of this file.

Classes

struct  OSXMLNamespace

Functions

OSXMLNamespacertXmlNSAddNamespace (OSCTXT *pctxt, const OSUTF8CHAR *prefix, const OSUTF8CHAR *uri)
 This function adds a namespace to the context namespace list.
const OSUTF8CHARrtXmlNSGetPrefix (OSCTXT *pctxt, const OSUTF8CHAR *uri)
 This function gets the namespace prefix assigned to the given URI.
OSXMLNamespacertXmlNSLookupURI (OSCTXT *pctxt, const OSUTF8CHAR *uri)
 This function looks up a namespace in the context namespace list using URI as the key value.
void rtXmlNSRemoveAll (OSCTXT *pctxt)
 This function removes all namespaces from the context namespace list and frees the dynamic memory used to hold the names.
OSXMLNamespacertXmlNSSetNamespace (OSCTXT *pctxt, const OSUTF8CHAR *prefix, const OSUTF8CHAR *uri, OSBOOL override)
 This function sets a namespace in the context namespace list.


Detailed Description

XML namespace handling structures and function definitions.

Definition in file rtXmlNamespace.h.


Function Documentation

OSXMLNamespace* rtXmlNSAddNamespace OSCTXT pctxt,
const OSUTF8CHAR prefix,
const OSUTF8CHAR uri
 

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.

const OSUTF8CHAR* rtXmlNSGetPrefix OSCTXT pctxt,
const OSUTF8CHAR uri
 

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

OSXMLNamespace* rtXmlNSLookupURI OSCTXT pctxt,
const OSUTF8CHAR uri
 

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

OSXMLNamespace* rtXmlNSSetNamespace OSCTXT pctxt,
const OSUTF8CHAR prefix,
const OSUTF8CHAR uri,
OSBOOL  override
 

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.


This file was last modified on 8 Jan 2007.
XBinder, Version 1.1.9