xml_metadata Struct Reference
[Element metadata]

XML Metadata. More...

#include <oscap.h>

Public Member Functions

struct xml_metadataxml_metadata_new (void)
 Constructor of XML metadata.
void xml_metadata_free (struct xml_metadata *xml)
 Destructor of XML metadata structure.
Getters

If return value is a pointer to structure's member, do not free it unless you null the pointer in the structure.



const char * xml_metadata_get_nspace (const struct xml_metadata *xml)
 Get namespace attribute from XML metadata.
const char * xml_metadata_get_lang (const struct xml_metadata *xml)
 Get xml:lang attribute from XML metadata.
const char * xml_metadata_get_URI (const struct xml_metadata *xml)
 Get URI attribute from XML metadata.
Setters

For lists use add functions.

Parameters of set functions are duplicated in memory and need to be freed by caller.



bool xml_metadata_set_nspace (struct xml_metadata *xml, const char *new_namespace)
 Set namespace attribute of XML metadata.
bool xml_metadata_set_lang (struct xml_metadata *xml, const char *new_lang)
 Set xml:lang attribute of XML metadata.
bool xml_metadata_set_URI (struct xml_metadata *xml, const char *new_uri)
 Set URI attribute of XML metadata.

Data Fields

char * nspace
 XMLNS (namespace) prefix.
char * URI
 XMLNS (namespace) URI.
char * lang
 XML lang.

Detailed Description

XML Metadata.

Here should be every general attribute that can be present in every xml element such as xml:lang or xml namespace.


The documentation for this struct was generated from the following files:

Generated on 14 Jul 2010 for Open SCAP Library by  doxygen 1.6.1