SenXmlConstants.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : SenXmlConstants.h
00004 *  Part of     : Web Services Xml
00005 *  Interface   :
00006 *  Description : This header lists all constants of XML Extensions library
00007 *  Version     :
00008 *
00009 *  Copyright © 2002-2005 Nokia. All rights reserved.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia. All rights are reserved. Copying, including
00013 *  reproducing, storing, adapting or translating, any
00014 *  or all of this material requires the prior written consent of
00015 *  Nokia. This material also contains confidential
00016 *  information which may not be disclosed to others without the
00017 *  prior written consent of Nokia.
00018 * ==============================================================================
00019 */
00020 
00021 
00022 #ifndef SEN_XML_CONSTANTS_H
00023 #define SEN_XML_CONSTANTS_H
00024 
00025 //  INCLUDES
00026 #include <e32base.h>
00027 
00028 // CONSTANTS
00029 // Leave codes
00030 const TInt KErrSenInvalidCharacters         =   -30300;
00031 const TInt KErrSenZeroLengthDescriptor      =   -30301;
00032 const TInt KErrSenXmlReaderNotSet           =   -30302;
00033 const TInt KErrSenXmlContentHandlerNotSet   =   -30303;
00034 
00035 // Panics
00036 _LIT(KSenXmlPanic, "SenXml");
00037 
00038 
00039 
00040 // XML String constants
00041 const TInt KSenMaxXmlEscapedLength = 8;
00042 _LIT8(KSenSlash,                    "/");
00043 _LIT8(KSenColon,                    ":");
00044 _LIT8(KSenLessThan,                 "<");
00045 _LIT8(KSenGreaterThan,              ">");
00046 _LIT8(KSenSpace,                    " ");
00047 _LIT8(KSenQuot,                     "'");
00048 _LIT8(KSenDblQuot,                  "\"");
00049 _LIT8(KSenEquals,                   "=");
00050 _LIT8(KSenEqualsDblQuot,            "=\"");
00051 _LIT8(KSenSlashGreaterThan,         "/>");
00052 _LIT8(KSenLessThanSlash,            "</");
00053 _LIT8(KSenSpaceXmlns,               " xmlns");
00054 _LIT8(KSenXmlns,                    "xmlns");
00055 _LIT8(KSenXmlNsAttNamePlusColon,    "xmlns:");
00056 _LIT8(KSenXmlCommentStart,          "<!--");
00057 _LIT8(KSenXmlCommentEnd,            "-->");
00058 _LIT8(KSenXmlInstructionStart,      "<?");
00059 _LIT8(KSenXmlInstructionEnd,         "?>");
00060 _LIT8(KSenXmlEntityStart,            "<!");
00061 
00062 // The predeclared, basic XML entities:
00063 // &apos;    (')
00064 // &quot;    (")
00065 // &gt;      (>)
00066 // &lt;      (<)
00067 // &amp;     (&)
00068 
00069 _LIT8(KSenEscapedAmp,     "&amp;");
00070 _LIT8(KSenEscapedApos,    "&apos;");
00071 _LIT8(KSenEscapedDblQuot, "&quot;");
00072 _LIT8(KSenEscapedGt,      "&gt;");
00073 _LIT8(KSenEscapedLt,      "&lt;");
00074 
00075 // XML-escaping chars as descriptors
00076 _LIT8(KSenAmpersandDesC8,  "&");
00077 _LIT8(KSenAposDesC8,       "\'");
00078 _LIT8(KSenDblQuotDesC8,    "\"");
00079 _LIT8(KSenGtDesC8,         ">");
00080 _LIT8(KSenLtDesC8,         "<");
00081 
00082 
00083 /*
00084 _LIT8(KSenQuotedAmp,     "&amp;");
00085 _LIT8(KSenQuotedApos,    "&apos;");
00086 _LIT8(KSenQuotedDblQuot, "&quot;");
00087 _LIT8(KSenQuotedGt,      "&gt;");
00088 _LIT8(KSenQuotedLt,      "&lt;");
00089 */
00090 
00094 enum TSenXmlPanic
00095     {
00096     EBadNamespace = 1,
00097     EBadNamespacePrefix,
00098     EBufNot16Bit,
00099     EFragmentElementNotInitialized,
00100     EDelegatedFragmentAlreadySet,
00101     EInconsistentTokens,
00102     EBadInternalState
00103     };
00104 
00105 #endif // SEN_XML_CONSTANTS_H
00106 
00107 // End of File
00108 

Copyright © Nokia Corporation 2001-2007
Back to top