XML Metadata. More...
#include <oscap.h>
Public Member Functions | |
| struct xml_metadata * | xml_metadata_new (void) |
| Constructor of XML metadata. | |
| void | xml_metadata_free (struct xml_metadata *xml) |
| Destructor of XML metadata structure. | |
Getters | |
| 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 | |
| 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. | |
XML Metadata.
Here should be every general attribute that can be present in every xml element such as xml:lang or xml namespace.
1.6.1