--- a/epoc32/include/mw/senxmlconstants.h Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/senxmlconstants.h Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,112 @@
-senxmlconstants.h
+/*
+* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: This header lists all constants of XML Extensions library
+*
+*/
+
+
+
+
+
+
+
+
+
+#ifndef SEN_XML_CONSTANTS_H
+#define SEN_XML_CONSTANTS_H
+
+// INCLUDES
+#include <e32base.h>
+
+// CONSTANTS
+// Leave codes
+const TInt KErrSenInvalidCharacters = -30300;
+const TInt KErrSenZeroLengthDescriptor = -30301;
+const TInt KErrSenXmlReaderNotSet = -30302;
+const TInt KErrSenXmlContentHandlerNotSet = -30303;
+
+// Panics
+_LIT(KSenXmlPanic, "SenXml");
+
+
+
+// XML String constants
+const TInt KSenMaxXmlEscapedLength = 8;
+_LIT8(KSenSlash, "/");
+_LIT8(KSenColon, ":");
+_LIT8(KSenLessThan, "<");
+_LIT8(KSenGreaterThan, ">");
+_LIT8(KSenSpace, " ");
+_LIT8(KSenQuot, "'");
+_LIT8(KSenDblQuot, "\"");
+_LIT8(KSenEquals, "=");
+_LIT8(KSenEqualsDblQuot, "=\"");
+_LIT8(KSenSlashGreaterThan, "/>");
+_LIT8(KSenLessThanSlash, "</");
+_LIT8(KSenSpaceXmlns, " xmlns");
+_LIT8(KSenXmlns, "xmlns");
+_LIT8(KSenXmlNsAttNamePlusColon, "xmlns:");
+_LIT8(KSenXmlCommentStart, "<!--");
+_LIT8(KSenXmlCommentEnd, "-->");
+_LIT8(KSenXmlInstructionStart, "<?");
+_LIT8(KSenXmlInstructionEnd, "?>");
+_LIT8(KSenXmlEntityStart, "<!");
+
+// The predeclared, basic XML entities:
+// ' (')
+// " (")
+// > (>)
+// < (<)
+// & (&)
+
+_LIT8(KSenEscapedAmp, "&");
+_LIT8(KSenEscapedApos, "'");
+_LIT8(KSenEscapedDblQuot, """);
+_LIT8(KSenEscapedGt, ">");
+_LIT8(KSenEscapedLt, "<");
+
+// XML-escaping chars as descriptors
+_LIT8(KSenAmpersandDesC8, "&");
+_LIT8(KSenAposDesC8, "\'");
+_LIT8(KSenDblQuotDesC8, "\"");
+_LIT8(KSenGtDesC8, ">");
+_LIT8(KSenLtDesC8, "<");
+
+
+/*
+_LIT8(KSenQuotedAmp, "&");
+_LIT8(KSenQuotedApos, "'");
+_LIT8(KSenQuotedDblQuot, """);
+_LIT8(KSenQuotedGt, ">");
+_LIT8(KSenQuotedLt, "<");
+*/
+
+/**
+* SenXmlPanic Enumeration
+*/
+enum TSenXmlPanic
+ {
+ EBadNamespace = 1,
+ EBadNamespacePrefix,
+ EBufNot16Bit,
+ EFragmentElementNotInitialized,
+ EDelegatedFragmentAlreadySet,
+ EInconsistentTokens,
+ EBadInternalState
+ };
+
+#endif // SEN_XML_CONSTANTS_H
+
+// End of File
+