PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV, WEBDEV and WINDEV Mobile 26 feature!
This content has been translated automatically. Click here to view the French version.
  • Properties specific to the description of Document variables
  • WLanguage functions that manipulate htmlDocument variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The htmlDocument type is used to define all the advanced characteristics of an HTML document. The characteristics of this document can be defined and modified using different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
d is htmlDocument
e is htmlNode
e.TagName = "H1"
e.Text = "Title"
d.html.body.Add(e)
Remarks

Properties specific to the description of Document variables

The following properties can be used to handle xlsDocument variables:
Property nameType usedEffect
HTMLContentCharacter stringHTML content of the document encoded in UTF-8.
RootNodehtmlNode variableArray of root nodes.
Remarks:
  • The "." operator is used to access the root "html" element.
  • Empty documents are created with the "html" element.
  • An HTML document contains a single htmlNode element named "html"..
  • You can loop through all the elements of a document using "FOR EACH x OF DocumentVariable IN-DEPTH".

WLanguage functions that manipulate htmlDocument variables

Versions 26 and later
HTMLBuildString
New in version 26
HTMLBuildString
HTMLBuildString
Generates a UTF-8 string containing an HTML document.
Versions 26 and later
HTMLEditorGetDocument
New in version 26
HTMLEditorGetDocument
HTMLEditorGetDocument
Asynchronously retrieves the HTML document being displayed in an HTML Edit control.
Versions 26 and later
HTMLFindElementByClass
New in version 26
HTMLFindElementByClass
HTMLFindElementByClass
Searches for elements whose "class" attribute matches a specific value in an HTML document (or in an HTML node).
Versions 26 and later
HTMLFindElementById
New in version 26
HTMLFindElementById
HTMLFindElementById
Searches for the element whose "Id" attribute matches a specific value in an HTML document (or in an HTML node).
Versions 26 and later
HTMLFindElementByName
New in version 26
HTMLFindElementByName
HTMLFindElementByName
Searches for elements whose "name" attribute matches a specific value in an HTML document (or in an HTML node).
Versions 26 and later
HTMLFindElementByTag
New in version 26
HTMLFindElementByTag
HTMLFindElementByTag
Searches for elements that correspond to a tag in an HTML document (or an HTML node).
Versions 26 and later
HTMLOpen
New in version 26
HTMLOpen
HTMLOpen
Creates an htmlDocument variable from an HTML document.
Versions 26 and later
HTMLSave
New in version 26
HTMLSave
HTMLSave
Saves the content of an htmlDocument variable to an HTML file.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment