-
-
07 Jul 2003 15:22:49 UTC
- Distribution: StateML
- Module version: 0.001
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (120 / 1 / 0)
- Kwalitee
Bus factor: 0- 39.07% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (21.97KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
StateML::SAXHandler - convert a SAX stream to a StateML::Machine
SYNOPSIS
## From StateML::parse() require StateML::SAXHandler; require XML::Filter::Mode; my $handler = StateML::SAXHandler->new( $machine ) ; my $mode_filter = XML::Filter::Mode->new( Handler => $handler, Modes => [$machine->modes], ); ## Require PurePerl for now to get the bugs out local $XML::ParserPackage = "XML::SAX::PurePerl"; my $p = XML::SAX::ParserFactory->parser( Handler => $mode_filter, UseAttributeOrder => 1, Source => $source, ) ; return $p->parse ;
DESCRIPTION
Use like a normal SAX handler, then collect the machine from the SAX pipline's end_document() event.
See XML::Filter::Modes for an oft-used prefilter to "shape" your machines by giving elements to nodes.
See StateML::parse() for source examples.
LIMITATIONS
Alpha code. Ok test suite, but we may need to change things in non-backward compatible ways.
COPYRIGHT
Copyright 2003, R. Barrie Slaymaker, Jr., All Rights Reserved
LICENSE
You may use this module under the terms of the BSD, Artistic, or GPL licenses, any version.
AUTHOR
Barrie Slaymaker <barries@slaysys.com>
Module Install Instructions
To install StateML, copy and paste the appropriate command in to your terminal.
cpanm StateML
perl -MCPAN -e shell install StateML
For more information on module installation, please visit the detailed CPAN module installation guide.