SimplePie: PHP-based RSS and Atom feed handling
 
  • Overview
  • Demo
  • Blog
  • Download
  • Documentation
  • API Docs
  • Support
  • Issue Tracker
  • FAQ
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • SimplePie
    • API
    • Caching
    • HTTP
    • Parsing

Classes

  • SimplePie_Parse_Date
  • SimplePie_Parser
  • SimplePie_XML_Declaration_Parser

Class SimplePie_XML_Declaration_Parser

Parses the XML Declaration

Package: SimplePie\Parsing
Copyright: 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
License: BSD License
Author: Ryan Parman
Author: Geoffrey Sneddon
Author: Ryan McCue
Located at SimplePie/XML/Declaration/Parser.php
Methods summary
public
# __construct( string $data )

Create an instance of the class with the input data

Parameters

$data
string
Input data
public boolean
# parse( )

Parse the input data

Returns

boolean
true on success, false on failure
public boolean
# has_data( )

Check whether there is data beyond the pointer

Returns

boolean
true if there is further data, false if not
public integer
# skip_whitespace( )

Advance past any whitespace

Returns

integer
Number of whitespace characters passed
public
# get_value( )

Read value

public
# before_version_name( )
public
# version_name( )
public
# version_equals( )
public
# version_value( )
public
# encoding_name( )
public
# encoding_equals( )
public
# encoding_value( )
public
# standalone_name( )
public
# standalone_equals( )
public
# standalone_value( )
Properties summary
public string $version '1.0'
#

XML Version

public string $encoding 'UTF-8'
#

Encoding

public boolean $standalone false
#

Standalone

public string $state 'before_version_name'
#

Current state of the state machine

public string $data ''
#

Input data

public integer $data_length 0
#

Input data length (to avoid calling strlen() everytime this is needed)

public integer $position 0
#

Current position of the pointer

Show some love! Wishlists for Geoffrey, Ryan P., and Ryan M.

SimplePie is © 2004–2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue and contributors. Licensed under the BSD License. Hosted thanks to Matt Mullenweg, API documentation generated by ApiGen 2.6.1. Variation on the Feed Icon by Wolfgang Bartelme.