Name
xte_head — Returns the vector corresponding to a head of a XML element
Synopsis
xte_head
(
|
in tagname varchar , |
in attr1name varchar , | |
in attr1val varchar , | |
... , | |
in attrNname varchar , | |
in
attrNval
varchar
) ; |
Description
This function takes odd number of parameters and creates vector which corresponds to a head of a XML element. The first parameter is a tag name of the head. The remaining parameters are optional. Each even parameter is a name of an attribute, each next odd parameter is a value of this attribute. If two or more attributes have the same name, the head would have only the last pair.
Parameters
tagname
The tag name of the head
attrIname
The name of the I-th attribute
attrIval
The value of the I-th attribute
Errors
Table 24.120. Errors signalled by
xte_head
SQLState | Error Code | Error Text | Description |
---|---|---|---|
42000 | XTE01 | Function xte_head should have an odd number of parameters |
Examples
Example 24.487. Simple Use
The xte_head() call below takes three strings
xte_head ('supplier', 'CompanyName', 'Seller' )
and produces the result vector which corresponds the following head of a XML element:
<supplier CompanyName="Seller">