summaryrefslogtreecommitdiff
path: root/src/utils/validate.h
blob: 73186536ef1731749c522610bd80a3946f3f0732 (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
/*
 * This file is part of libdom.
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
 *
 * This file contains the API used to validate whether certain element's 
 * name/namespace are legal according the XML 1.0 standard. See 
 *
 * http://www.w3.org/TR/2004/REC-xml-20040204/
 * 
 * for detail.
 */

#ifndef  dom_utils_valid_h_
#define  dom_utils_valid_h_

#include <stdbool.h>
#include <dom/core/string.h>

bool _dom_validate_name(dom_string *name);
bool _dom_validate_ncname(dom_string *name);

#endif