1.1 --- a/epoc32/include/xml/parserfeature.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/xml/parserfeature.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,88 @@
1.4 -parserfeature.h
1.5 +// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#ifndef PARSERFEATURE_H
1.21 +#define PARSERFEATURE_H
1.22 +
1.23 +/**
1.24 +@file
1.25 +@SYMPurpose Declares XML Framework parser features
1.26 +@publishedAll
1.27 +@released
1.28 +*/
1.29 +
1.30 +
1.31 +namespace Xml
1.32 +{
1.33 +
1.34 +/** Features defined for XML Framework parser plug-ins.
1.35 +
1.36 +Every parser has a set of optional features that it may implement. This
1.37 +enumeration is the set of all features known to the framework and its
1.38 +plug-ins. Each feature is assigned a flag bit from the 32 possible.
1.39 +
1.40 +@see Xml::CParser::EnableFeature
1.41 +*/
1.42 +enum TParserFeature
1.43 + {
1.44 + /** Convert elements and attributes to lowercase. This can be used for
1.45 + case-insensitive HTML so that a tag can be matched to a static string in
1.46 + the string pool.
1.47 + @see RStringPool */
1.48 + EConvertTagsToLowerCase = 0x0001,
1.49 +
1.50 + /** Report an error when unrecognised tags are found. */
1.51 + EErrorOnUnrecognisedTags = 0x0002,
1.52 +
1.53 + /** Reports unrecognised tags. */
1.54 + EReportUnrecognisedTags = 0x0004,
1.55 +
1.56 + /** Report the namespace. */
1.57 + EReportNamespaces = 0x0008,
1.58 +
1.59 + /** Report the namespace prefix. */
1.60 + EReportNamespacePrefixes = 0x0010,
1.61 +
1.62 + /** Send all content data for an element in one chunk. */
1.63 + ESendFullContentInOneChunk = 0x0020,
1.64 +
1.65 + /** Report namespace mappings via the OnStartPrefixMapping &
1.66 + OnEndPrefixMapping methods.
1.67 + @see MContentHandler */
1.68 + EReportNamespaceMapping = 0x0040,
1.69 +
1.70 + /** Describe the data in the specified encoding, otherwise use utf-8. */
1.71 + ERawContent = 0x0080,
1.72 +
1.73 + /** When this feature is enabled the parser will allow (not generate an
1.74 + error) entities from external subsets to appear in element attribute
1.75 + values. When the replacement text of such entities are not known the
1.76 + parser will return the entity reference as it appears in the document
1.77 + e.g. "&ext_ref;" */
1.78 + EReplaceIntEntityFromExtSubsetByRef = 0x0100,
1.79 +
1.80 + /** When this feature is not supported the parser is an XML 1.0 parser.
1.81 + When set parser can handle both XML 1.1 & 1.0 documents, otherwise just
1.82 + XML 1.0. Equivalent to the standard SAX2 feature "xml-1.1" */
1.83 + EXmlVersion_1_1 = 0x0200,
1.84 +
1.85 + /** Used to mark the highest flag in use.
1.86 + Update to reflect any new enumerations added. */
1.87 + ELastFeature = EXmlVersion_1_1,
1.88 + };
1.89 +
1.90 +}
1.91 +
1.92 +#endif // PARSERFEATURE_H