XML QName

## XML QName XML QName — XML Namespace-qualified names. |

## Functions

raptor_qname * | raptor_new_qname ()
raptor_qname * | raptor_new_qname_from_namespace_local_name ()
raptor_qname * | raptor_new_qname_from_namespace_uri ()
raptor_qname * | raptor_qname_copy ()
void | raptor_free_qname ()
int | raptor_qname_equal ()
raptor_uri * | raptor_qname_string_to_uri ()
int | raptor_qname_write ()
unsigned char * | raptor_qname_format_as_xml ()
const unsigned char * | raptor_qname_get_counted_value ()
const unsigned char * | raptor_qname_get_local_name ()
const raptor_namespace * | raptor_qname_get_namespace ()
const unsigned char * | raptor_qname_get_value ()
unsigned char * | raptor_qname_to_counted_name ()

## Types and Values

typedef | raptor_qname

## Description

Wraps an XML name inside an associated XML namespace in some XML document context (typically). Mostly used inside parsing XML to manage qnames for XML element and attribute names.

## Functions

### raptor_new_qname ()

    raptor_qname *
    raptor_new_qname (raptor_namespace_stack *nstack,
                      const unsigned char *name,
                      const unsigned char *value);

#### Returns

### raptor_new_qname_from_namespace_local_name ()

    raptor_qname *
    raptor_new_qname_from_namespace_local_name
                                   (raptor_world *world,
                                    raptor_namespace *ns,
                                    const unsigned char *local_name,
                                    const unsigned char *value);

#### Returns

### raptor_new_qname_from_namespace_uri ()

    raptor_qname *
    raptor_new_qname_from_namespace_uri (raptor_namespace_stack *nstack,
                                         raptor_uri *uri,
                                         int xml_version);

#### Returns

### raptor_qname_copy ()

    raptor_qname *
    raptor_qname_copy (raptor_qname *qname);

#### Returns

### raptor_free_qname ()

    void
    raptor_free_qname (raptor_qname *name);

### raptor_qname_equal ()

    int
    raptor_qname_equal (raptor_qname *name1,
                        raptor_qname *name2);

#### Returns

### raptor_qname_string_to_uri ()

    raptor_uri *
    raptor_qname_string_to_uri (raptor_namespace_stack *nstack,
                                const unsigned char *name,
                                size_t name_len);

#### Returns

### raptor_qname_write ()

    int
    raptor_qname_write (raptor_qname *qname,
                        raptor_iostream *iostr);

#### Returns

### raptor_qname_format_as_xml ()

    unsigned char *
    raptor_qname_format_as_xml (const raptor_qname *qname,
                                size_t *length_p);

#### Returns

### raptor_qname_get_counted_value ()

    const unsigned char *
    raptor_qname_get_counted_value (raptor_qname *name,
                                    size_t *length_p);

#### Returns

### raptor_qname_get_local_name ()

    const unsigned char *
    raptor_qname_get_local_name (raptor_qname *name);

#### Returns

### raptor_qname_get_namespace ()

    const raptor_namespace *
    raptor_qname_get_namespace (raptor_qname *name);

#### Returns

### raptor_qname_get_value ()

    const unsigned char *
    raptor_qname_get_value (raptor_qname *name);

#### Returns

### raptor_qname_to_counted_name ()

    unsigned char *
    raptor_qname_to_counted_name (raptor_qname *qname,
                                  size_t *length_p);

#### Returns

## Types and Values

### raptor_qname

    raptor_qname* raptor_qname;

Raptor XML qname class