DOMNodeReader.AttributeCount

Syntax:

AttributeCount()

Returned value:

Type: Number.

Description:

Obtains a number of attributes from the last read XML node. Since only XML element has attributes, access to them is only available during reading a node of the following type StartElement.

Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

Example:

Reader.OpenFile("c:/docs/data.xml");
While 
Reader.Read() Do
    If Reader.AttributeCount() > Then
        While Reader.ReadAttribute() Do
            // process the attribute
        EndDo
    EndIf
EndDo


    

1C:Enterprise Developer's Community