XML_MXML
[ class tree: XML_MXML ] [ index: XML_MXML ] [ all elements ]

Class: XML_MXML

Source Location: /XML_MXML-0.3.0/MXML.php

Class Overview


XML/MXML.php


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 64]
XML/MXML.php

Package to create MXML documents.

To create a new document you have to call createDocument() statically:

  1.  require_once 'XML/MXML.php';
  2.  
  3.  $doc XML_MXML::createDocument'myXML.mxml' );

The document object provides methods to create and add any element you like:

  1.  try {
  2.       $root $doc->createElement('Application'array('application'=> 'Demo application for MXML'));
  3.       $doc->addRoot($root);
  4.  catch (Exception $e{
  5.       die($e->getMessage());
  6.  }



[ Top ]


Method Detail

apiVersion   [line 130]

string apiVersion( )

Return API version.
  • Return: API version
  • Access: public

[ Top ]

createDocument   [line 75]

object Instance createDocument( [string $filename = null])

Create a MXML document.
  • Return: of XML_MXML_Document
  • Access: public

Parameters:

string   $filename   — 

[ Top ]

loadFile   [line 92]

void loadFile( string $filename)

Load MXML document from file.
  • Access: public

Parameters:

string   $filename   — 

[ Top ]

loadString   [line 111]

void loadString( string $filename)

Load MXML document from a string.
  • Access: public

Parameters:

string   $filename   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:57:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.