2 * Copyright 2001-2006 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 XMLConstants.h
20 * Fundamental XML namespace constants
23 #if !defined(__xmltooling_xmlconstants_h__)
24 #define __xmltooling_xmlconstants_h__
26 #include <xmltooling/unicode.h>
28 namespace xmltooling {
31 * XML related constants.
33 struct XMLTOOL_API XMLConstants
35 /** XML core namespace ("http://www.w3.org/XML/1998/namespace") */
36 static const XMLCh XML_NS[];
38 /** XML namespace prefix for special xml attributes ("xml") */
39 static const XMLCh XML_PREFIX[];
41 /** XML namespace for xmlns attributes ("http://www.w3.org/2000/xmlns/") */
42 static const XMLCh XMLNS_NS[];
44 /** XML namespace prefix for xmlns attributes ("xmlns") */
45 static const XMLCh XMLNS_PREFIX[];
47 /** XML Schema namespace ("http://www.w3.org/2001/XMLSchema") */
48 static const XMLCh XSD_NS[];
50 /** XML Schema QName prefix ("xs") */
51 static const XMLCh XSD_PREFIX[];
53 /** XML Schema Instance namespace ("http://www.w3.org/2001/XMLSchema-instance") */
54 static const XMLCh XSI_NS[];
56 /** XML Schema Instance QName prefix ("xsi") */
57 static const XMLCh XSI_PREFIX[];
59 /** XML Signature namespace ("http://www.w3.org/2000/09/xmldsig#") */
60 static const XMLCh XMLSIG_NS[];
62 /** XML Signature QName prefix ("ds") */
63 static const XMLCh XMLSIG_PREFIX[];
65 /** XML Encryption namespace ("http://www.w3.org/2001/04/xmlenc#") */
66 static const XMLCh XMLENC_NS[];
68 /** XML Encryption QName prefix ("xenc") */
69 static const XMLCh XMLENC_PREFIX[];
71 /** SOAP 1.1 Envelope XML namespace ("http://schemas.xmlsoap.org/soap/envelope/") */
72 static const XMLCh SOAP11ENV_NS[];
74 /** SOAP 1.1 Envelope QName prefix ("S") */
75 static const XMLCh SOAP11ENV_PREFIX[];
77 /** XML Tooling namespace ("http://www.opensaml.org/xmltooling") */
78 static const XMLCh XMLTOOLING_NS[];
80 /** XML "true" boolean constant */
81 static const XMLCh XML_TRUE[];
83 /** XML "false" boolean constant */
84 static const XMLCh XML_FALSE[];
86 /** XML "1" boolean constant */
87 static const XMLCh XML_ONE[];
89 /** XML "0" boolean constant */
90 static const XMLCh XML_ZERO[];
92 /** Enumerations of the different values of a boolean attribute or element */
93 enum xmltooling_bool_t {
104 #endif /* __xmltooling_xmlconstants_h__ */