What do you mean by incorrect? What did you get and what did you expect? If I may hazard a guess ... you want the modified <record> tag to have the children in the same order as the other ones, right? If so you have to create the subtags in the right order. And hashes do not keep any order. The order in which you specify the keys doesn't matter. At all.
Also, why do you write
but$new = $xdoc->createElement("$key");
? Why do you quote the variable in one case and do not quote in the other?$new->appendChild($text);
And if instead of the output being incorrect you actually get an error according the subject, then most likely you should use just
instead of$xitem->getElementsByTagName('institute')->getNodeValue;
$xitem->getElementsByTagName('institute')->item(0)->getFirstChild->get +NodeValue;
In reply to Re: XML::DOM - NOT_FOUND_ERR
by Jenda
in thread XML::DOM - NOT_FOUND_ERR
by sureerat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |