|
1 /* |
|
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This header lists all constants of XML Extensions library |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 #ifndef SEN_XML_CONSTANTS_H |
|
27 #define SEN_XML_CONSTANTS_H |
|
28 |
|
29 // INCLUDES |
|
30 #include <e32base.h> |
|
31 |
|
32 // CONSTANTS |
|
33 // Leave codes |
|
34 const TInt KErrSenInvalidCharacters = -30300; |
|
35 const TInt KErrSenZeroLengthDescriptor = -30301; |
|
36 const TInt KErrSenXmlReaderNotSet = -30302; |
|
37 const TInt KErrSenXmlContentHandlerNotSet = -30303; |
|
38 |
|
39 // Panics |
|
40 _LIT(KSenXmlPanic, "SenXml"); |
|
41 |
|
42 |
|
43 |
|
44 // XML String constants |
|
45 const TInt KSenMaxXmlEscapedLength = 8; |
|
46 _LIT8(KSenSlash, "/"); |
|
47 _LIT8(KSenColon, ":"); |
|
48 _LIT8(KSenLessThan, "<"); |
|
49 _LIT8(KSenGreaterThan, ">"); |
|
50 _LIT8(KSenSpace, " "); |
|
51 _LIT8(KSenQuot, "'"); |
|
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, "<!"); |
|
65 |
|
66 // The predeclared, basic XML entities: |
|
67 // ' (') |
|
68 // " (") |
|
69 // > (>) |
|
70 // < (<) |
|
71 // & (&) |
|
72 |
|
73 _LIT8(KSenEscapedAmp, "&"); |
|
74 _LIT8(KSenEscapedApos, "'"); |
|
75 _LIT8(KSenEscapedDblQuot, """); |
|
76 _LIT8(KSenEscapedGt, ">"); |
|
77 _LIT8(KSenEscapedLt, "<"); |
|
78 |
|
79 // XML-escaping chars as descriptors |
|
80 _LIT8(KSenAmpersandDesC8, "&"); |
|
81 _LIT8(KSenAposDesC8, "\'"); |
|
82 _LIT8(KSenDblQuotDesC8, "\""); |
|
83 _LIT8(KSenGtDesC8, ">"); |
|
84 _LIT8(KSenLtDesC8, "<"); |
|
85 |
|
86 |
|
87 /* |
|
88 _LIT8(KSenQuotedAmp, "&"); |
|
89 _LIT8(KSenQuotedApos, "'"); |
|
90 _LIT8(KSenQuotedDblQuot, """); |
|
91 _LIT8(KSenQuotedGt, ">"); |
|
92 _LIT8(KSenQuotedLt, "<"); |
|
93 */ |
|
94 |
|
95 /** |
|
96 * SenXmlPanic Enumeration |
|
97 */ |
|
98 enum TSenXmlPanic |
|
99 { |
|
100 EBadNamespace = 1, |
|
101 EBadNamespacePrefix, |
|
102 EBufNot16Bit, |
|
103 EFragmentElementNotInitialized, |
|
104 EDelegatedFragmentAlreadySet, |
|
105 EInconsistentTokens, |
|
106 EBadInternalState |
|
107 }; |
|
108 |
|
109 #endif // SEN_XML_CONSTANTS_H |
|
110 |
|
111 // End of File |
|
112 |