Share via


IXMLNodeSource::GetFlags

Send Feedback

This method sets the flags that can be combined by using OR to control how the parser works. By default, none of the flags are set.

Syntax

ULONG GetFlags (void);

Parameters

None.

Return Values

This method returns any combination of the following flags.

  • XMLFLAG_FLOATINGAMP
    This is a Microsoft® Internet Explorer 4.0 compatibility flag that allows the PCDATA to contain unescaped ampersand characters.

  • XMLFLAG_SHORTENDTAGS
    This is an Internet Explorer 4.0 compatibility flag that allows short end tags </>.

  • XMLFLAG_CASEINSENSITIVE
    This makes the parser case-insensitive; the text returned is whatever was in the original file. It does not fold to uppercase; this is inefficient and not always necessary.

  • XMLFLAG_NONAMESPACES
    This indicates whether the namespace declarations and tag name syntax are recognized.

  • XMLFLAG_NOWHITESPACE
    This indicates whether to return WHITESPACE nodes.

  • XMLFLAG_IE4QUIRKS
    This is a miscellaneous flag for other Internet Explorer 4.0 compatibility issues, described as follows.

    Value Description
    <x=>
    This syntax error was allowed under Internet Explorer 4.0.
    <! — x -- y -->
    Invalid " — " characters inside comments.
    xml-space
    Instead of xml:space.
    <x y="1"z="2/>
    White space between attributes not needed.
    <x a="1" a="2"/>
    Duplicate attributes.
    <!-- top of doc -->
    Comments before the <?xml declaration.
    <x y="<z>"/>
    The '<' character inside an attribute.
    <x>]]></x>
    ']]>' sequence inside PCDATA.
  • XMLFLAG_NODTDNODES
    This turns off parsing of any internal document type definition (DTD) subset so that NodeFactories that do not care about DTDs do not need to deal with them at all.

  • XMLFLAG_IE4COMPATIBILITY
    This acts as an OR of all of the above, which results in good overall Internet Explorer 4.0 compatibility.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: xmlparser.h
Library: xmlparser.lib

See Also

IXMLNodeSource

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.