DBIx::Class::LibXMLdoc

DBIx::Class::LibXMLdoc is a Perl module to create an adjunct "Doc" accessor of a column's data.
Download

DBIx::Class::LibXMLdoc Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ashley Pond V
  • Publisher web site:
  • http://search.cpan.org/~ashley/Lingua-EN-Titlecase-0.06/lib/Lingua/EN/Titlecase.pm

DBIx::Class::LibXMLdoc Tags


DBIx::Class::LibXMLdoc Description

DBIx::Class::LibXMLdoc is a Perl module to create an adjunct "Doc" accessor of a column's data. DBIx::Class::LibXMLdoc is a Perl module to create an adjunct "Doc" accessor of a column's data which is automatically parsed into a LibXML documentElement (alpha-software).SYNOPSIS package My::DB::thingy; __PACKAGE__->load_components(qw/ PK::Auto LibXMLdoc Core /); __PACKAGE__->table('thingy'); __PACKAGE__->add_columns(qw/ id title body created owner whatever /); __PACKAGE__->set_primary_key('id'); __PACKAGE__->libXMLdoc_columns(qw/ body /); package main; use My::DB; my $schema = My::DB->connect(...); my $thingy = $schema->resultset("thingy")->find(153); print $thingy->bodyDoc->toString, "nn"; print $thingy->bodyDoc->textContent, "n";This DBIx::Class component does not alter your data in any way. It takes column names to get the value from the column, parse it into XML with LibXML and make the documentElement object available via an autogenerated accessor named by affixing the column with "Doc."The XML parsing is on demand so it doesn't waste time doing it to data you don't use or by doing it more than once to data that is unchanged.A wrapper XML tag for the mini-document is auto-generated from the table + column name. So- my $xhmlt = Requirements: · Perl


DBIx::Class::LibXMLdoc Related Software