19 quizzes found.

PHP 5 supports which of the following XML parsing methods?

  1. SAX
  2. FastDOM
  3. DOM
  4. XPath
  5. XML to Object mapping

Choose 4 answers

When embedding PHP into XML documents, what must you ensure is true in order for things to function properly?

  1. Disabling of the short_tags PHP.ini directive
  2. Enabling the asp_tags PHP.ini directive
  3. That you have XPath support enabled in PHP 5
  4. That your XML documents are well-formed
  5. None of the above, PHP can be embedded in XML in all cases.

Choose 1 answers


  1. Validators
  2. DTD
  3. Transformations
  4. Namespaces

Choose 1 answers

Consider the following example XML document; What is wrong with this document, and how can it be corrected?

<!DOCTYPE html
  <title>XML Example</title>
   Moved to <<a href="http://example.org/">http://www.example.org/</a>.>
  1. The document is completely valid
  2. All special XML characters must be represented as entities within the content of a node
  3. All tags must be closed
  4. You cannot specify a namespace for the <html> attribute
  5. The DOCTYPE declaration is malformed

Choose 2 answers

Event-based XML parsing is an example of which parsing model?

  1. SAX
  2. DOM
  3. XML Object Mapping
  4. XPath
  5. XQuery

Choose 1 answers