This function replaces the first item of the second argument by the first argument and returns a vector corresponding to an XML element.
| SQLState | Error Code | Error Text | Description |
|---|---|---|---|
| 22003 | SR349 | Too few arguments for xte_node_from_nodebld | |
| 22003 | SR350 | The second argument of xte_node_from_nodebld is not made by xte_nodebld_init() function |
The vector res below is corresponding to the following XML element:
<product><supplier CompanyName="Seller"></supplier></product>
create procedure test_nodebld()
{
declare acc any;
declare res any;
xte_nodebld_init (acc);
xte_nodebld_acc(acc,xte_node(xte_head ('supplier', 'CompanyName','Seller')));
acc:=xte_nodebld_final(acc);
res:=xte_node_from_nodebld(xte_head('product'), acc);
result (length(res), xml_tree_doc (res));
};
test_nodebld()
ResLen Res
INTEGER VARCHAR
_______________________________________________________________________________
2 <product><supplier CompanyName="Seller" /></product>