FastInfosetReader.ReadAttribute

Syntax:

ReadAttribute()

Returned value:

Type: Boolean.
True - next attribute read; False - no more attributes.

Description:

Reads next attribute of XML element. After reading using method FastInfosetReader.Read of the next node type StartElement you can get access to attributes of a given element. Each time this method is run, it allows the next attribute to be read. After reading a next attribute, properties FastInfosetReader.NodeType, FastInfosetReader.Name, FastInfosetReader.LocalName, FastInfosetReader.Prefix, FastInfosetReader.NamespaceURI, FastInfosetReader.Value get values according to the read attribute.

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
            // Processing the attribute
        EndDo
    EndIf
EndDo


    

1C:Enterprise Developer's Community