Open
Description
one | two | three |
four | five | six |
EOF;
print "\nExample 1: \n";
// Get all of the elements in the document and add the
// attribute foo='bar'
:
qp($xml, 'td')->attr('foo', 'bar')->writeXML();
print "\nExample 2: \n";
print "
";
// Or print the contents of the third TD in the second row:
print qp($xml, '#row2>td:nth(3)')->text();
print "
";
print "\nExample 3: \n";
// Or append another row to the XML and then write the
// result to standard output:
qp($xml, 'tr:last')->after("SevenEightNine")->writeXML();
Metadata
Metadata
Assignees
Labels
No labels