Overview

Namespaces

  • PHP
  • SimpleExcel
    • Enums
    • Parser
    • Spreadsheet
    • Writer

Classes

  • BaseParser
  • CSVParser
  • HTMLParser
  • JSONParser
  • TSVParser
  • XLSXParser
  • XMLParser

Interfaces

  • IParser
  • Overview
  • Namespace
  • Class
  • Tree

Class XMLParser

SimpleExcel class for parsing Microsoft Excel 2003 XML Spreadsheet

SimpleExcel\Parser\BaseParser implements SimpleExcel\Parser\IParser
Extended by SimpleExcel\Parser\XMLParser
Namespace: SimpleExcel\Parser
Package: SimpleExcel
Author: Faisalman
Located at Parser/XMLParser.php
Methods summary
protected boolean
# parseDOM( SimpleXMLElement $xml )

Process the loaded file/string

Process the loaded file/string

Parameters

$xml
SimpleXMLElement
$xml SimpleXMLElement object of XML

Returns

boolean

Throws

Exception
If document namespace invalid
public boolean
# loadFile( string $file_path, array $options = NULL )

Load the XML file to be parsed

Load the XML file to be parsed

Parameters

$file_path
string
$file_path Path to XML file
$options
array
$options Options

Returns

boolean
public boolean
# loadString( string $str, array $options = NULL )

Load the string to be parsed

Load the string to be parsed

Parameters

$str
string
$str String with XML format
$options
array
$options Options

Returns

boolean
Methods inherited from SimpleExcel\Parser\BaseParser
__construct(), checkFile()
Properties summary
protected string $file_extension 'xml'
#

Defines valid file extension

Defines valid file extension

Properties inherited from SimpleExcel\Parser\BaseParser
$workbook
API documentation generated by ApiGen 2.8.0