XMLReader.AttributeValue

Syntax variant: By number

Syntax:

AttributeValue(<AttributeNumber>)

Parameters:

<AttributeNumber> (required)

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

Syntax variant: By full name

Syntax:

AttributeValue(<AttributeFullName>)

Parameters:

<AttributeFullName> (required)

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

Syntax variant: By a local name and namespace

Syntax:

AttributeValue(<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.AttributeValue("GroupID");
Except
EndTry;


    

1C:Enterprise Developer's Community