blob: 900c9ee30e0ac3ca6b6853e82d75663d46cfef74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* This file is part of libdom.
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2007 John-Mark Bell <jmb@netsurf-browser.org>
*/
#ifndef dom_utils_namespace_h_
#define dom_utils_namespace_h_
#include <dom/functypes.h>
#include <dom/core/exceptions.h>
struct dom_document;
struct dom_string;
/* Initialise the namespace component */
dom_exception _dom_namespace_initialise(dom_alloc alloc, void *pw);
/* Finalise the namespace component */
dom_exception _dom_namespace_finalise(void);
/* Ensure a QName is valid */
dom_exception _dom_namespace_validate_qname(struct dom_string *qname,
struct dom_string *namespace);
/* Split a QName into a namespace prefix and localname string */
dom_exception _dom_namespace_split_qname(struct dom_string *qname,
struct dom_string **prefix, struct dom_string **localname);
/* Get the XML prefix dom_string */
struct dom_string *_dom_namespace_get_xml_prefix(void);
/* Get the XMLNS prefix dom_string */
struct dom_string *_dom_namespace_get_xmlns_prefix(void);
#endif
|