Compartilhar via


omitXMLDeclaration Property

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This property forces the MXXMLWriter to skip the XML declaration. It can be used to output fragments of larger XML documents that can be assembled into a single XML document later.

Syntax

[propput]
HRESULT omitXMLDeclaration(
[in] VARIANT_BOOL fValue
);
[propget]
HRESULT omitXMLDeclaration(
[out, retval] VARIANT_BOOL* fValue
);

Parameters

  • fValue
    Boolean expression (TRUE/FALSE) specifying whether the feature is on or off, as shown in the following table.

    Value Description

    TRUE

    Omit XML declaration.

    FALSE (default)

    Provide XML declaration.

Return Value

  • S_OK
    Returned if no errors are reported.

Requirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IMXWriter