DOMNodeReader.GetAttribute

Syntax variant: By number

Syntax:

GetAttribute(<AttributeNumber>)

Parameters:

<AttributeNumber> (required)

Type: Number.
One-up attribute number, beginning with 0.

Syntax variant: By full name

Syntax:

GetAttribute(<AttributeFullName>)

Parameters:

<AttributeFullName> (required)

Type: String.
Full name of the attribute, including prefix.

Syntax variant: By a local name and namespace

Syntax:

GetAttribute(<AttributeLocalName>, <NamespaceURI>)

Parameters:

<AttributeLocalName> (required)

Type: String.
Local attribute name, not including prefix.

<NamespaceURI> (required)

Type: String.
Namespace URI for a local attribute name.

Returned value:

Type: String; Undefined.
If the is not found, the method returns the line showing the value of the attribute. If the attribute is not found in relation to the assigned parameters, the method returns the value Undefined.

Description:

Obtains an attribute value.

Availability:

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

Example:

Reader.OpenFile(FileName);
Try
    GroopId = Reader.GetAttribute("GroupID");
Except
EndTry;


    

1C:Enterprise Developer's Community