StyxDomNamespace *xmlnsAttributes;
/*!
* @function writeNamespace
* Function used by writeDOM() to write this node on a stream.
* @param file Stream to write the namespace.
*/
void writeNamespace(FILE* file);
/*!
* @function writeAttr
* Function used by writeDom() to write this node on a stream.
* @param file Stream to write the attributes.
*/
void writeAttr(FILE* file);
};
/*!
* class StyxDomNamespace
* XML node for namespace representation.
*/
class StyxDomNamespace
{
public:
/*!
* @function getName
* Return the namespace's name.
* @result Namespace's name.
*/
string getName(void);
/*!
* @function getUri
* Return the namespace's uri.
* @result Namespace's uri.
*/
string getUri(void);
/*!
* @function getNextSibling
* Return a pointer to the next sibling of this node in the
* namespace list.
* @result A pointer to a StyxDomNamespace.
*/
StyxDomNamespace* getNextSibling(void);
/*!
* @function addSibling
* Add an existing StyxDomNamespace as last sibling of this node.
* @param ns A pointer to a previously created StyxDomNamespace.
*/
void addSibling(StyxDomNamespace* ns);
/*!
* @function getRootNode
* Return a pointer to the node where is declared this namespace.
* @result A pointer to a StyxDomNode.
*/
StyxDomNode* getRootNode(void);
/*!
* @function StyxDomNamespace
* Constructor
*/
StyxDomNamespace(StyxDomNode* root, string name, string uri);
private:
/*! @var name Namespace's name. */
string name;
/*! @var uri Namespace's uri. */
string uri;
/*! @var rootNode Pointer to the node where this namespace was declared. */
StyxDomNode* rootNode;
/*! @var prev Pointer to the previous sibling namespace. */
StyxDomNamespace* prev;
/*! @var next Pointer to the next sibling namespace. */
StyxDomNamespace *next;
};
#endif /* __STYX_DOM_H__ */
List of namespaces declared in this node.