ZennoLab Assemblies Documentation
GetDomText Method
Example 
ZennoLab.CommandCenter Namespace > Document Class : GetDomText Method

Type: System.Boolean

true to return dom text of the document and dom text of the sub-documents recorded through delimiters; otherwise, false.

Returns the dom text of the document.
Syntax
public string GetDomText( 
   bool recursive
)

Parameters

recursive

Type: System.Boolean

true to return dom text of the document and dom text of the sub-documents recorded through delimiters; otherwise, false.

Return Value

Type: System.String

The dom text of the document

Remarks
For getting dom text correctly needs full download of tab (web page). Use the IsBusy property and WaitDownloading method of Tab class for waiting for page's downloading.
Example
The following code example demonstrates uses of the GetDomText method. Shows the method call in two versions.
// get document
Document doc = tab.MainDocument;
 
// get dom text include dom text of sub-documents
string domText1 = doc.GetDomText(true);
 
// get dom text without dom text of sub-documents
string domText2 = doc.GetDomText(false);
// get document
$doc = $tab->MainDocument;
 
// get dom text include dom text of sub-documents
$domText1 = $doc->GetDomText(true);
 
// get dom text without dom text of sub-documents
$domText2 = $doc->GetDomText(false);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Document Class
Document Members
Tab Class