IMPORTEXPORT
[COMMON]

Handling input and output files plus validation according to XML schema. More...

Data Structures

struct  oscap_nsinfo
 Information on namespaces for given document. More...
struct  oscap_nsinfo_entry
 Namespace information entry. More...
struct  oscap_nsinfo_entry_iterator
 Namespace info iterator. More...

Functions

struct oscap_nsinfooscap_nsinfo::oscap_nsinfo_new (void)
struct oscap_nsinfooscap_nsinfo::oscap_nsinfo_new_file (const char *fname)
void oscap_nsinfo::oscap_nsinfo_free (struct oscap_nsinfo *info)
struct oscap_nsinfo_entryoscap_nsinfo_entry::oscap_nsinfo_entry_new (void)
struct oscap_nsinfo_entryoscap_nsinfo_entry::oscap_nsinfo_entry_new_fill (const char *nsprefix, const char *nsname)
void oscap_nsinfo_entry::oscap_nsinfo_entry_free (struct oscap_nsinfo_entry *entry)

Evaluators



bool oscap_validate_xml (const char *xmlfile, const char *schemafile, struct oscap_reporter *reporter)
 Validate a xml file against given xml schema.

Getters

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



struct
oscap_nsinfo_entry_iterator
oscap_nsinfo::oscap_nsinfo_get_entries (const struct oscap_nsinfo *item)
struct oscap_nsinfo_entryoscap_nsinfo::oscap_nsinfo_get_root_entry (const struct oscap_nsinfo *item)
struct oscap_nsinfo_entryoscap_nsinfo::oscap_nsinfo_get_entry_by_ns (struct oscap_nsinfo *info, const char *ns)
const char * oscap_nsinfo_entry::oscap_nsinfo_entry_get_nsname (const struct oscap_nsinfo_entry *item)
const char * oscap_nsinfo_entry::oscap_nsinfo_entry_get_nsprefix (const struct oscap_nsinfo_entry *item)
const char * oscap_nsinfo_entry::oscap_nsinfo_entry_get_schema_location (const struct oscap_nsinfo_entry *item)

Setters

For lists use add functions.

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



bool oscap_nsinfo::oscap_nsinfo_add_entry (struct oscap_nsinfo *obj, struct oscap_nsinfo_entry *item)
bool oscap_nsinfo::oscap_nsinfo_set_root_entry (struct oscap_nsinfo *obj, struct oscap_nsinfo_entry *newval)
bool oscap_nsinfo_entry::oscap_nsinfo_entry_set_nsname (struct oscap_nsinfo_entry *obj, const char *newval)
bool oscap_nsinfo_entry::oscap_nsinfo_entry_set_nsprefix (struct oscap_nsinfo_entry *obj, const char *newval)
bool oscap_nsinfo_entry::oscap_nsinfo_entry_set_schema_location (struct oscap_nsinfo_entry *obj, const char *newval)

Iterators



bool oscap_nsinfo_entry_iterator::oscap_nsinfo_entry_iterator_has_more (struct oscap_nsinfo_entry_iterator *it)
struct oscap_nsinfo_entryoscap_nsinfo_entry_iterator::oscap_nsinfo_entry_iterator_next (struct oscap_nsinfo_entry_iterator *it)
void oscap_nsinfo_entry_iterator::oscap_nsinfo_entry_iterator_free (struct oscap_nsinfo_entry_iterator *it)

Detailed Description

Handling input and output files plus validation according to XML schema.


Function Documentation

bool oscap_nsinfo_add_entry ( struct oscap_nsinfo obj,
struct oscap_nsinfo_entry item 
) [inherited]
void oscap_nsinfo_entry_free ( struct oscap_nsinfo_entry entry  )  [inherited]
const char * oscap_nsinfo_entry_get_nsname ( const struct oscap_nsinfo_entry item  )  [inherited]
const char * oscap_nsinfo_entry_get_nsprefix ( const struct oscap_nsinfo_entry item  )  [inherited]
const char * oscap_nsinfo_entry_get_schema_location ( const struct oscap_nsinfo_entry item  )  [inherited]
void oscap_nsinfo_entry_iterator_free ( struct oscap_nsinfo_entry_iterator it  )  [inherited]
bool oscap_nsinfo_entry_iterator_has_more ( struct oscap_nsinfo_entry_iterator it  )  [inherited]
struct oscap_nsinfo_entry * oscap_nsinfo_entry_iterator_next ( struct oscap_nsinfo_entry_iterator it  )  [read, inherited]
struct oscap_nsinfo_entry * oscap_nsinfo_entry_new ( void   )  [read, inherited]
struct oscap_nsinfo_entry * oscap_nsinfo_entry_new_fill ( const char *  nsprefix,
const char *  nsname 
) [read, inherited]
bool oscap_nsinfo_entry_set_nsname ( struct oscap_nsinfo_entry obj,
const char *  newval 
) [inherited]
bool oscap_nsinfo_entry_set_nsprefix ( struct oscap_nsinfo_entry obj,
const char *  newval 
) [inherited]
bool oscap_nsinfo_entry_set_schema_location ( struct oscap_nsinfo_entry obj,
const char *  newval 
) [inherited]
void oscap_nsinfo_free ( struct oscap_nsinfo info  )  [inherited]
struct oscap_nsinfo_entry_iterator * oscap_nsinfo_get_entries ( const struct oscap_nsinfo item  )  [read, inherited]
struct oscap_nsinfo_entry * oscap_nsinfo_get_entry_by_ns ( struct oscap_nsinfo info,
const char *  ns 
) [read, inherited]
struct oscap_nsinfo_entry * oscap_nsinfo_get_root_entry ( const struct oscap_nsinfo item  )  [read, inherited]
struct oscap_nsinfo * oscap_nsinfo_new ( void   )  [read, inherited]
struct oscap_nsinfo * oscap_nsinfo_new_file ( const char *  fname  )  [read, inherited]
bool oscap_nsinfo_set_root_entry ( struct oscap_nsinfo obj,
struct oscap_nsinfo_entry newval 
) [inherited]

Generated on 30 Jun 2010 for Open SCAP Library by  doxygen 1.6.1