Class QPXML

(line 17)

Description


Located in File: /src/QueryPath/Extension/QPXML.php

Provide additional tools for working with XML content.


Class Variables

Summary:
mixed $qp

$qp (line 19)

Data type : mixed

  • access: - protected

Class Constants

Summary:

Method Detail

Summary:
QPXML __construct (QueryPath $qp)
mixed cdata ([string $text = NULL])
mixed comment ([string $text = NULL])
void pi ([ $prefix = NULL], [ $text = NULL])
void schema ( $file)

Constructor __construct (line 21)

QPXML __construct( QueryPath $qp)


Implementation of:
QueryPathExtension::__construct()

Parameters

Info

  • access - public

Method cdata (line 53)

mixed cdata( [string $text = NULL])

Get or set a CDATA section.

If this is given text, it will create a CDATA section in each matched element, setting that item's value to $text.

If no parameter is passed in, this will return the first CDATA section that it finds in the matched elements.

Parameters

  • string $text: The text data to insert into the current matches. If this is NULL, then the first CDATA will be returned.

Info

Method comment (line 95)

mixed comment( [string $text = NULL])

Get or set a comment.

This function is used to get or set comments in an XML or HTML document. If a $text value is passed in (and is not NULL), then this will add a comment (with the value $text) to every match in the set.

If no text is passed in, this will return the first comment in the set of matches. If no comments are found, NULL will be returned.

Parameters

  • string $text: The text of the comment. If set, a new comment will be created in every item wrapped by the current QueryPath.

Info

  • return - If $text is set, this will return a QueryPath. If no text is set, this will search for a comment and attempt to return the string value of the first comment it finds. If no comment is found, NULL will be returned.
  • see - QPXML::cdata()
  • access - public

Method pi (line 116)

void pi( [ $prefix = NULL], [ $text = NULL])

Get or set a processor instruction.

Parameters

  • $prefix:
  • $text:

Info

  • access - public

Method schema (line 25)

void schema( $file)

Parameters

  • $file:

Info

  • access - public

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Sun, 25 Jul 2010 16:09:06 -0500 by phpDocumentor 1.4.3