GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIWRAPPER::XMLPARSER (3)

.ds Aq ’

NAME

XMLParser - The XML Configuration Parser Module.

CONTENTS

SYNOPSIS



  use DBIWrapper::XMLParser;
  my $obj = DBIWrapper::XMLParser->new(file => "config.xml");
  my $resultSetObj = $obj->parse; # this is a ResultSet object.



DESCRIPTION

XMLParser will parse XML files that have been generated by the DBIWrapper readXML method. See the DBIWrapper::ResultSet man page for the structure of the returned data.

FUNCTIONS



  scalar new(file, string)
    Creates a new instance of the DBIWrapper::ResultSet
    object.  file points to the XML Config file to use.

    If you dont specify a file to work with then you must specify the
    xml via the string argument.  If you specify both, then the string
    will take precedence.  The file must still point to a valid file.

  DBIWrapper::ResultSet parse(void)
    Does the actual parsing of the XML file and generates the
    resulting data object and returns it.

  string getVersion(void)
    returns the version value from the parent <resultset> tag.



VARIABLES



  resultFile - The xml file name we are working with or the contents
               of the string of xml passed in.

  resultSetVersion - The version of the XML file we require.

  resultSetObj - ResultSet object that represents the xml file.

  xmlObj - The XML::LibXML object being used to parse the XML File.

  NOTE:  All data fields are accessible by specifying the object
         and pointing to the data member to be modified on the
         left-hand side of the assignment.
         Ex.  $obj->variable($newValue); or $value = $obj->variable;



AUTHOR

Xperience, Inc. (mailto:admin at pcxperience.com)

SEE ALSO

perl(1), DBIWrapper::ResultSet(3)
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIWRAPPER::XMLPARSER (3) 2008-10-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.