epoc32/include/mw/senxmlconstants.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations

/*
* 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:
// &apos;    (')
// &quot;    (")
// &gt;      (>)
// &lt;      (<)
// &amp;     (&)

_LIT8(KSenEscapedAmp,     "&amp;");
_LIT8(KSenEscapedApos,    "&apos;");
_LIT8(KSenEscapedDblQuot, "&quot;");
_LIT8(KSenEscapedGt,      "&gt;");
_LIT8(KSenEscapedLt,      "&lt;");

// XML-escaping chars as descriptors
_LIT8(KSenAmpersandDesC8,  "&");
_LIT8(KSenAposDesC8,       "\'");
_LIT8(KSenDblQuotDesC8,    "\"");
_LIT8(KSenGtDesC8,         ">");
_LIT8(KSenLtDesC8,         "<");


/*
_LIT8(KSenQuotedAmp,     "&amp;");
_LIT8(KSenQuotedApos,    "&apos;");
_LIT8(KSenQuotedDblQuot, "&quot;");
_LIT8(KSenQuotedGt,      "&gt;");
_LIT8(KSenQuotedLt,      "&lt;");
*/

/**
* SenXmlPanic Enumeration
*/
enum TSenXmlPanic
    {
    EBadNamespace = 1,
    EBadNamespacePrefix,
    EBufNot16Bit,
    EFragmentElementNotInitialized,
    EDelegatedFragmentAlreadySet,
    EInconsistentTokens,
    EBadInternalState
    };

#endif // SEN_XML_CONSTANTS_H

// End of File