2 * Copyright 2001-2007 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file xmltooling/util/XMLConstants.h
20 * Fundamental XML namespace constants
23 #ifndef __xmltooling_xmlconstants_h__
24 #define __xmltooling_xmlconstants_h__
26 #include <xmltooling/unicode.h>
29 * XML related constants.
31 namespace xmlconstants {
33 /** XML core namespace ("http://www.w3.org/XML/1998/namespace") */
34 extern XMLTOOL_API const XMLCh XML_NS[];
36 /** XML namespace prefix for special xml attributes ("xml") */
37 extern XMLTOOL_API const XMLCh XML_PREFIX[];
39 /** XML namespace for xmlns attributes ("http://www.w3.org/2000/xmlns/") */
40 extern XMLTOOL_API const XMLCh XMLNS_NS[];
42 /** XML namespace prefix for xmlns attributes ("xmlns") */
43 extern XMLTOOL_API const XMLCh XMLNS_PREFIX[];
45 /** XML Schema namespace ("http://www.w3.org/2001/XMLSchema") */
46 extern XMLTOOL_API const XMLCh XSD_NS[];
48 /** XML Schema QName prefix ("xs") */
49 extern XMLTOOL_API const XMLCh XSD_PREFIX[];
51 /** XML Schema Instance namespace ("http://www.w3.org/2001/XMLSchema-instance") */
52 extern XMLTOOL_API const XMLCh XSI_NS[];
54 /** XML Schema Instance QName prefix ("xsi") */
55 extern XMLTOOL_API const XMLCh XSI_PREFIX[];
57 /** XML Signature namespace ("http://www.w3.org/2000/09/xmldsig#") */
58 extern XMLTOOL_API const XMLCh XMLSIG_NS[];
60 /** XML Signature QName prefix ("ds") */
61 extern XMLTOOL_API const XMLCh XMLSIG_PREFIX[];
63 /** XML Encryption namespace ("http://www.w3.org/2001/04/xmlenc#") */
64 extern XMLTOOL_API const XMLCh XMLENC_NS[];
66 /** XML Encryption QName prefix ("xenc") */
67 extern XMLTOOL_API const XMLCh XMLENC_PREFIX[];
69 /** SOAP 1.1 Envelope XML namespace ("http://schemas.xmlsoap.org/soap/envelope/") */
70 extern XMLTOOL_API const XMLCh SOAP11ENV_NS[];
72 /** SOAP 1.1 Envelope QName prefix ("S") */
73 extern XMLTOOL_API const XMLCh SOAP11ENV_PREFIX[];
75 /** XML Tooling namespace ("http://www.opensaml.org/xmltooling") */
76 extern XMLTOOL_API const XMLCh XMLTOOLING_NS[];
78 /** XML "true" boolean constant */
79 extern XMLTOOL_API const XMLCh XML_TRUE[];
81 /** XML "false" boolean constant */
82 extern XMLTOOL_API const XMLCh XML_FALSE[];
84 /** XML "1" boolean constant */
85 extern XMLTOOL_API const XMLCh XML_ONE[];
87 /** XML "0" boolean constant */
88 extern XMLTOOL_API const XMLCh XML_ZERO[];
90 /** Enumerations of the different values of a boolean attribute or element */
91 enum xmltooling_bool_t {
100 #endif /* __xmltooling_xmlconstants_h__ */