getfirstattr
| getfirstattr | 
  Purpose
 
  Synopsis
 
 function getfirstattr(doc:xmldoc, n:integer):integer 
 
  Arguments
 
| 
     doc 
     | 
     Document to use
     | 
| 
     n 
     | 
     Node number (must be an element)
     | 
  Return value
 
 The node number of the first attribute of the element node provided or
 -1 if there is no attribute.
  Example
 
 The following example displays all attributes of node
 e:
 
  declarations
    DB: xmldoc
    a,e: integer
  end-declarations
  a:=getfirstattr(DB,e)
  while(a>0) do
    writeln(getname(DB,a), "=", getvalue(DB,a))
    a:=getnext(DB,a)
  end-do
  Further information
 
  Attributes are represented by nodes of type
 XML_ATTR: all node-related routines can be applied to attribute nodes.
 
  Related topics
 
  Module
 
 
