Share via


IXMLNodeSource::GetFlags

4/8/2010

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 Value

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 White-Space 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 enabled 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 have to deal with them at all
  • XMLFLAG_IE4COMPATIBILITY
    This acts as an OR of all the above. This results in good overall Internet Explorer 4.0 compatibility

Requirements

Header xmlparser.h
Library xmlparser.lib
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also

Reference

IXMLNodeSource