2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: This header lists all constants of XML Extensions library
26 #ifndef SEN_XML_CONSTANTS_H
27 #define SEN_XML_CONSTANTS_H
34 const TInt KErrSenInvalidCharacters = -30300;
35 const TInt KErrSenZeroLengthDescriptor = -30301;
36 const TInt KErrSenXmlReaderNotSet = -30302;
37 const TInt KErrSenXmlContentHandlerNotSet = -30303;
40 _LIT(KSenXmlPanic, "SenXml");
44 // XML String constants
45 const TInt KSenMaxXmlEscapedLength = 8;
46 _LIT8(KSenSlash, "/");
47 _LIT8(KSenColon, ":");
48 _LIT8(KSenLessThan, "<");
49 _LIT8(KSenGreaterThan, ">");
50 _LIT8(KSenSpace, " ");
52 _LIT8(KSenDblQuot, "\"");
53 _LIT8(KSenEquals, "=");
54 _LIT8(KSenEqualsDblQuot, "=\"");
55 _LIT8(KSenSlashGreaterThan, "/>");
56 _LIT8(KSenLessThanSlash, "</");
57 _LIT8(KSenSpaceXmlns, " xmlns");
58 _LIT8(KSenXmlns, "xmlns");
59 _LIT8(KSenXmlNsAttNamePlusColon, "xmlns:");
60 _LIT8(KSenXmlCommentStart, "<!--");
61 _LIT8(KSenXmlCommentEnd, "-->");
62 _LIT8(KSenXmlInstructionStart, "<?");
63 _LIT8(KSenXmlInstructionEnd, "?>");
64 _LIT8(KSenXmlEntityStart, "<!");
66 // The predeclared, basic XML entities:
73 _LIT8(KSenEscapedAmp, "&");
74 _LIT8(KSenEscapedApos, "'");
75 _LIT8(KSenEscapedDblQuot, """);
76 _LIT8(KSenEscapedGt, ">");
77 _LIT8(KSenEscapedLt, "<");
79 // XML-escaping chars as descriptors
80 _LIT8(KSenAmpersandDesC8, "&");
81 _LIT8(KSenAposDesC8, "\'");
82 _LIT8(KSenDblQuotDesC8, "\"");
83 _LIT8(KSenGtDesC8, ">");
84 _LIT8(KSenLtDesC8, "<");
88 _LIT8(KSenQuotedAmp, "&");
89 _LIT8(KSenQuotedApos, "'");
90 _LIT8(KSenQuotedDblQuot, """);
91 _LIT8(KSenQuotedGt, ">");
92 _LIT8(KSenQuotedLt, "<");
96 * SenXmlPanic Enumeration
103 EFragmentElementNotInitialized,
104 EDelegatedFragmentAlreadySet,
109 #endif // SEN_XML_CONSTANTS_H