THtmlNode() > Html Attribute methods xHarbour Developers Network  

oTHtmlNode:setAttributes()

Sets multiple attributes and their values.

Syntax

:setAttributes( <cHtmlAttr> ) --> hHash

Arguments

<cHtmlAttr>
This is a character string holding the names and values of the attributes to set. Attribute names are case insensitive.

Description

Method :setAttributes() accepts a character string holding one or more attribute names and values and assigns these attributes to the THtmlNode object. An attribute name must be separated with an equal sign from its value. Name/value pairs are separated with blank spaces. If an attribute value contains blank spaces, it must be embedded in quotes. For example:

   oDoc  := THtmlDocument():new()
   oNode := oDoc:head + "meta"
   oNode:setAttributes( 'name=Generator content="xHarbour THtmlDocument class"' )

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