diff options
Diffstat (limited to 'src/utils/validate.h')
-rw-r--r-- | src/utils/validate.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/utils/validate.h b/src/utils/validate.h new file mode 100644 index 0000000..5d375e7 --- /dev/null +++ b/src/utils/validate.h @@ -0,0 +1,26 @@ +/* + * 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> + +struct dom_string; + +bool _dom_validate_name(struct dom_string *name); +bool _dom_validate_ncname(struct dom_string *name); + +#endif + |