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

Class: Console_CommandLine_XmlParser

Source Location: /Console_CommandLine-1.2.0/Console/CommandLine/XmlParser.php

Class Overview


Parser for command line xml definitions.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2007 David JEAN LOUIS

Methods


Inherited Variables

Inherited Methods


Class Details

[line 42]
Parser for command line xml definitions.


[ Top ]


Method Detail

parse   [line 54]

Console_CommandLine parse( string $xmlfile)

Parses the given xml definition file and returns a Console_CommandLine instance constructed with the xml data.
  • Return: A parser instance
  • Access: public

Parameters:

string   $xmlfile   —  The xml file to parse

[ Top ]

parseString   [line 79]

Console_CommandLine parseString( string $xmlstr)

Parses the given xml definition string and returns a Console_CommandLine instance constructed with the xml data.
  • Return: A parser instance
  • Access: public

Parameters:

string   $xmlstr   —  The xml string to parse

[ Top ]

validate   [line 101]

boolean validate( DomDocument $doc)

Validates the xml definition using Relax NG.
  • Return: Whether the xml data is valid or not.
  • Todo: use exceptions
  • Throws: Console_CommandLine_Exception
  • Access: public

Parameters:

DomDocument   $doc   —  The document to validate

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:51:32 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.