ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/XML-DB/DB.pm
(Generate patch)

Comparing XML-DB/DB.pm (file contents):
Revision 1.1 by root, Sun Apr 21 15:41:31 2002 UTC vs.
Revision 1.2 by root, Sun Apr 21 17:30:07 2002 UTC

20 20
21=cut 21=cut
22 22
23package XML::DB; 23package XML::DB;
24 24
25sub dk($) {
26 my $x = unpack "H*", $_[0];
27 $x =~ y/a-z/A-Z/;
28 $x;
29}
30
31use XML::Parser;
32use PApp::SQL;
33
25#require Exporter; 34#require Exporter;
26require DynaLoader; 35BEGIN {
36 $VERSION = 0.01;
27 37
28$VERSION = 0.01; 38 use base DynaLoader;
29@ISA = qw/DynaLoader/;
30 39
31bootstrap DB $VERSION; 40 bootstrap XML::DB $VERSION;
41}
42
43sub new {
44 my $class = shift;
45 bless { @_ }, $class;
46}
47
48sub new_xml_insert_parser {
49 my $did = 55;
50 my $n = 1;
51
52 my @children = ([]);
53
54 new XML::Parser
55 NameSpaces => 1,
56 NoExpand => 1,
57 Handlers => {
58 Char => sub {
59 push @{$children[-1]}, ['pcdata', $_[1]];
60 },
61 Start => sub {
62 },
63 End => sub {
64 },
65 },
66 @_,
67 ;
68}
32 69
331; 701;
34 71
35 72
36 73

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines