#!/local/bin/php -q /* This is an example for getting the attribute of a node "article" using the xmldoc-function. */ \n". "\n". "\n". "
\n". "\n"); $node = $docnode->children(); $node = $node[1]->children(); $attr = $node[1]->attributes(); printf("%s=%s", $attr[0]->name, $attr[0]->children[0]->content); ?>