Skip to content

EnumerateAttributes - cXMLDOMEntityReference

Provides a way to enumerate through all child attributes

Type: Procedure

Parameters

Parameter Type Description
iMsg Integer The message that is sent
hoReceiver Handle Handle of the object that the message is sent to
sSomeValue String Value passed to iMsg message as the second parameter

Syntax

Procedure EnumerateAttributes Integer iMsg Handle hoReceiver String sSomeValue

Call Example

Send EnumerateAttributes iMsg hoReceiver sSomeValue

Description

EnumerateAttributes provides a way to enumerate through all child attributes. For each valid node type the message iMsg is sent to the object hoReceiver, passing two parameters - a handle to the attribute node and sSomeValue

Sample

Procedure ShowAtt handle hoNode integer iLevel
    string sName sValue

    Get psName of hoNode to sName
    Get psNodeValue of hoNode to sValue
    Showln iLevel " : " sName " - " sValue
End_Procedure

Procedure ShowNode handle hoNode integer iLevel string sX
    string sName

    Get psNodeName of hoNode to sName
    ShowLn iLevel " :" sName
    Increment iLevel
    Send EnumerateAttributes of hoNode msg_showAtt  self iLevel
    Send EnumerateElements   of hoNode msg_showNode self iLevel sX
End_Procedure

Procedure ShowAll
    handle hoNode

    Get DocumentElement of hoMyXML to hoNode
    Send ShowNode hoNode 1 ""
End_Procedure

See Also

EnumerateElements | EnumerateNodes