Xml
XML::Descent is a Perl module for recursive descent XML parsing. SYNOPSIS use XML::Descent; # Create parser my $p = XML::Descent->new({ Input => $xml }); # Setup handlers $p->on(folder => sub { my ($elem, $attr) = @_; $p->on(url => sub { my ($elem, $attr) = @_; my $link = { name...
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (93): XML::Descent Download |
Template::Plugin::XML::Style is a Perl module for simple XML stylesheet transformations. SYNOPSIS [% USE xmlstyle table = { attributes = { border = 0 cellpadding = 4 cellspacing = 1 } } %] [% FILTER xmlstyle %] < table > < tr > < td >Foo< /td > < td >Bar< /td > < td >Baz< /td >...
Platforms: *nix
License: Freeware | Size: 26.62 KB | Download (101): Template::Plugin::XML::Style Download |
Template::Plugin::XML is a XML plugin for the Template Toolkit. SYNOPSIS [% USE XML; dom = XML.dom(foo.xml); xpath = XML.xpath(bar.xml); simple = XML.simple(baz.xml); rss = XML.simple(news.rdf); %] [% USE XML(file=foo.xml); dom = XML.dom xpath = XML.xpath # ...etc... %] [% USE...
Platforms: *nix
License: Freeware | Size: 26.62 KB | Download (107): Template::Plugin::XML Download |
Template::Plugin::XML::Simple is a plugin interface to XML::Simple. SYNOPSIS # load plugin and specify XML file to parse [% USE xml = XML.Simple(xml_file_or_text) %] This is a Template Toolkit plugin interfacing to the XML::Simple module..
Platforms: *nix
License: Freeware | Size: 26.62 KB | Download (94): Template::Plugin::XML::Simple Download |
XML::Namespace is a Perl module with simple support for XML Namespaces. SYNOPSIS Example 1: using XML::Namespace objects use XML::Namespace; my $xsd = XML::Namespace->new(http://www.w3.org/2001/XMLSchema#); # explicit access via the uri() method print $xsd->uri(); #...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (94): XML::Namespace Download |
XML::Schema::Type::Simple is a base class for simple XML Schema datatypes. SYNOPSIS package XML::Schema::Type::whatever; use base qw( XML::Schema::Type::Simple ); use vars qw( @FACETS ); @FACETS = ( minLength => 10, maxLength => 30, otherFacet => { value => $n, fixed => 1,...
Platforms: *nix
License: Freeware | Size: 143.36 KB | Download (107): XML::Schema::Type::Simple Download |
Template::Plugin::XML::DOM is a plugin interface to XML::DOM. SYNOPSIS # load plugin [% USE dom = XML.DOM %] # also provide XML::Parser options [% USE dom = XML.DOM(ProtocolEncoding = ISO-8859-1) %] # parse an XML file [% doc = dom.parse(filename) %] [% doc = dom.parse(file =...
Platforms: *nix
License: Freeware | Size: 26.62 KB | Download (99): Template::Plugin::XML::DOM Download |
XML::Diff is a Perl module for XML DOM-Tree based Diff & Patch Module. SYNOPSIS my $diff = XML::Diff->new(); # to generate a diffgram of two XML files, use compare. # $old and $new can be filepaths, XML as a string, # XML::LibXML::Document or XML::LibXML::Element objects. # The diffgram...
Platforms: *nix
License: Freeware | Size: 17.41 KB | Download (104): XML::Code Download |
XML::Diff is a Perl module for XML DOM-Tree based Diff & Patch Module. SYNOPSIS my $diff = XML::Diff->new(); # to generate a diffgram of two XML files, use compare. # $old and $new can be filepaths, XML as a string, # XML::LibXML::Document or XML::LibXML::Element objects. # The diffgram...
Platforms: *nix
License: Freeware | Size: 17.41 KB | Download (128): XML::Diff Download |
XML::All is a Perl module that contains overloaded XML objects. SYNOPSIS use XML::All; Â my $xml = < < a href=/ >1 < b >2< /b > < em >3< /em >< /a > >; Â print $$xml; # a print join ", ", @$xml; # 1, < b >2< /b >, < em >3< /em > print join ", ", %$xml; # href, / Â print $xml->b();...
Platforms: *nix
License: Freeware | Size: 25.6 KB | Download (93): XML::All Download |
XML::Literal is a Perl module with syntax support for XML literals. SYNOPSIS # This is not a source filter: it just augments glob(). use XML::Simple; use XML::Literal &XMLin; # Simple element my $xml1 = < hr/ >; # With variable interpolation my $xml2 = < input value=$ARGV[0] / >; #...
Platforms: *nix
License: Freeware | Size: 24.58 KB | Download (94): XML::Literal Download |
XML::Essex::Event is a base event class, also used for unknown event types. Stringifies as $event->type . "()" to indicate an event that has no natural way to represented in XML, or for ones that havent been handled yet in Essex. Methods new XML::Event->new( a => 1, b => 2 );...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (95): XML::Essex::Event Download |
XML::Filter::Dispatcher::Compiler can compile rulesets in to code. SYNOPSIS use XML::Filter::Dispatcher::Compiler qw( xinline ); my $c = XML::Filter::Dispatcher::Compiler->new( ... ) my $code = $c->compile( Package => "My::Filter", Rules => [ a/b/c => xinline q{warn "found a/b/c"}, ],...
Platforms: *nix
License: Freeware | Size: 88.06 KB | Download (103): XML::Filter::Dispatcher::Compiler Download |
XML::Filter::DocSplitter does multipass processing of documents. SYNOPSIS ## See XML::SAX::???? for an easier way to use this filter. use XML::SAX::Machines qw( Machine ) ; my $m = Machine( [ Intake => "XML::Filter::DocSplitter" => qw( Filter ) ], [ Filter => "My::Filter" => qw( Merger...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (102): XML::Filter::DocSplitter Download |
XML::Filter::Tee can send SAX events to multiple processor, with switching. SYNOPSIS my $t = XML::Filter::Tee->new( { Handler => $h0 }, { Handler => $h1 }, { Handler => $h2 }, ... ); ## Altering the handlers list: $t->set_handlers( $h0, $h1, $h2, $h3 ); ## Controlling flow to a...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (106): XML::Filter::Tee Download |
XML::SAX::Machine is a Perl module that can manage a collection of SAX processors. SYNOPSIS ## Note: See XML::SAX::Pipeline and XML::SAX::Machines first, ## this is the gory, detailed interface. use My::SAX::Machines qw( Machine ); use My::SAX::Filter2; use My::SAX::Filter3; my...
Platforms: *nix
License: Freeware | Size: 43.01 KB | Download (103): XML::SAX::Machine Download |
XML::Filter::Dispatcher::AsStructHandler Perl module can help you convert SAX stream in to simple, data-oriented structure. SYNOPSIS ## Ordinarily used via the XML::Filter::Dispatchers as_data_struct() ## built-in extension function for XPath This SAX2 handler builds a simple hash from...
Platforms: *nix
License: Freeware | Size: 88.06 KB | Download (101): XML::Filter::Dispatcher::AsStructHandler Download |
XML::Filter::DataIndenter is a SAX2 Indenter for data oriented XML. SYNOPSIS use XML::Filter::DataIndenter; use XML::SAX::Machines qw( Pipeline ); Pipeline( XML::Filter::DataIndenter => *STDOUT ); ALPHA CODE ALERT: This is the first release. Feedback and patches welcome. In data...
Platforms: *nix
License: Freeware | Size: 3.07 KB | Download (88): XML::Filter::DataIndenter Download |
XML::Filter::Dispatcher is a path based event dispatching with DOM support. SYNOPSIS use XML::Filter::Dispatcher qw( :all ); my $f = XML::Filter::Dispatcher->new( Rules => [ foo => &handle_foo_start_tag, @bar => &handle_bar_attr, ## Send any elts and their contents to $handler...
Platforms: *nix
License: Freeware | Size: 88.06 KB | Download (93): XML::Filter::Dispatcher Download |
XML::ValidWriter is DOCTYPE driven valid XML output. SYNOPSIS ## As a normal perl object: $writer = XML::ValidWriter->new( DOCTYPE => $xml_doc_type, OUTPUT => *FH ) ; $writer->startTag( b1 ) ; $writer->startTag( c2 ) ; $writer->end ; ## Writing to a scalar: $writer =...
Platforms: *nix
License: Freeware | Size: 28.67 KB | Download (93): XML::ValidWriter Download |