THtmlNode() > Html Text data xHarbour Developers Network  

oTHtmlNode:text

Text node.

Info

Data type:ODefault:oTHtmlNode

Description

:text is a generic Access/Assign variable returning a new text node and optionally assigning textual content to it. The following PRG code demonstrates how HTML text can be created using the :text variable:

   oDoc := THtmlDocument():new()

   ? oDoc:body:toString()
   ** output
   //  <body>
   //  </body>

   oDoc:body:text := "Hello"
   oDoc:body:text := "-World"
   oDoc:body:text := "!!"

   ? oDoc:body:toString()
   ** output
   //  <body>Hello-World!!
   //  </body>
!CEND

!P[note=Note:]
use method :getText() to retrieve the entire text contained
in an HTML node.

!! ==========================

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe