Zend Framework Certification 100-500 Question # 2 Topic 1 Discussion

Zend Framework Certification 100-500 Question # 2 Topic 1 Discussion

100-500 Exam Topic 1 Question 2 Discussion:
Question #: 2
Topic #: 1

You have given the following XML data in the tasks.XML file:

Validate data

String Validation

Secure data

Encryption

Now, you run the following PHP script:

<?php

$objDOM = new DOMDocument();

$objDOM->load("tasks.xml");

$note = $objDOM->getElementsByTagName("note");

foreach( $note as $value )

{

$tasks = $value->getElementsByTagName("tasks");

$task = $tasks->item(0)->nodeValue;

$details = $value->getElementsByTagName("details");

$detail = $details->item(0)->nodeValue;

echo "$task :: $detail
";

}

?>

What should be displayed when this script is executed?


A.

The contents of the whole XML document


B.

The XML of every tasks and details nodes


C.

The contents of every tasks and details nodes


D.

The XML of whole XML document


Get Premium 100-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.