--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/websrv_pub/xml_extensions_api/inc/SenXmlConstants.h Thu Jan 07 16:19:19 2010 +0200
@@ -0,0 +1,112 @@
+/*
+* 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 "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.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
+