Home   |   Products   |   Documentation
 

dev net revision
29 July 2008
 

 
 

SetDocFlags Method

void CMarkup::SetDocFlags( int nFlags );

SetDocFlags sets the flags that pertain to the entire document object. See the GetDocFlags method for a description of the flags.

The MDF_IGNORECASE flag is usually set when the CMarkup object is instantiated, before the HTML is loaded and parsed. It also affects navigation. See HTML And CMarkup.

CMarkup html;
html.SetDocFlags( CMarkup::MDF_IGNORECASE );
html.Load( "example.html" );

The MDF_UTF16LEFILE, MDF_UTF8PREAMBLE and MDF_MODIFIED flags are only in CMarkup Developer.

When setting a flag such as MDF_MODIFIED during the course of the lifespan of the CMarkup object, you should be careful to only modify the specific bit you want to set. For example:

xml.SetDocFlags( xml.GetDocFlags() | xml.MDF_MODIFIED ); // on
xml.SetDocFlags( xml.GetDocFlags() & ~xml.MDF_MODIFIED ); // off
 
 

Question or comment about this article?

©Copyright 2008 First Objective Software, Inc. All rights reserved.