should be"//node[label = '$bldg']/node[label = '$floor']/label/text()"
and"//node[label = '$bldg']/node[label = '$floor']/label"
should be$newnode = $parent->addSibling($new_element);
$node->addSibling($new_element);
In reply to Re: libxml - insert node
by ikegami
in thread libxml - insert node
by Styric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |