it.sephiroth
[ index ] [ all elements ] [ errors ]

Class: XMLObject

Source Location: it/sephiroth/XMLObject.as

Class Overview

XML
   |
   -- XMLObject

Author(s):

  • Alessandro Crugnola

Version:

  • 1.1

Methods


Class Details



Tags:

version:   1.1
author:   Alessandro Crugnola 


[ Top ]


Class Methods


method get xml

public function get xml():XML


Parameters:

Return:


[ Top ]

method parseObject

public function parseObject( obj:Object, name:String ):XML

Transform a Flash Object into An XML

Usage: new XMLObject().parseObject( object, 'root_name')

Parameters:

Object   obj   object to be parsed
String   name   name of the first root element

Return:

XML   xml

[ Top ]

method parseXML

public function parseXML( xmlinput:XML, allArray:Boolean):Object

Parse an XML string into a flash object. If allarray param is passed, everything
will be pushed into array, even if an XMLNode contains only 1 node. Otherwise 1 node elements
will be parsed into single object, and multiple nodes into arrays.

Usage: xmlobj.parseXML( xmlstring, true );

Parameters:

Boolean   allArray   if set to true will put all nodes into an array, even if a single childNode
XML   xmlinput   XML string

Return:

Object   Object representing the XML

[ Top ]

method translateXML

private function translateXML (from:XML, path:Object, name:String, position:Number, allarray:Boolean):Object


Parameters:

Boolean   allarray   if set to true will put all nodes into an array, even if a single childNode
Object   path  
XML   from  
String   name  
Number   position  

Return:


[ Top ]




Document created at Sun Jun 26 10:30:29 2005 from Flash Doc Generator v.0.0.3