[ANNOUNCE] XML::SAX::Machines v0.37: improved merging
by Barrie Slaymaker other posts by this author
Sep 5 2002 9:50PM messages near this date
view in the new Beta List Site
Re: weired XML::LibXML bug
|
XML::Schema, anyone?
XML::Filter::Merger now allows you to insert documents inline:
my $h = XML::Filter::Merger-> new( ... );
$p = XML::ParserFactory-> parser( Handler => $h );
$h-> start_manifold_document( {} );
$h-> start_document( {} );
$h-> start_element( { Name => "foo1" } );
$p-> parse_string( "<foo2><baz /></foo2>" );
$h-> end_element( { Name => "foo1" } );
$h-> end_document( {} );
$p-> parse_string( "<foo3><bat /></foo3>" );
$h-> end_manifold_document( {} );
Yields something like:
<foo1> <baz /><bat /></foo1>
The <foo2> <baz/></foo2> subdocument was not handled correctly before.
The <foo3> <bat/></foo3> subdocument magic is how the Manifold SAX
machine works.
Note that you can retain the <foo2> and foo3 elements by calling
$h-> set_include_all_roots( 1 );
and get:
<foo1> <foo2><baz /></foo2><foo3><bat /></foo3></foo1>
(which is how the ByRecord() SAX machine works)
----- Forwarded message from PAUSE <upload@[...].de> -----
Date: Thu, 5 Sep 2002 23:45:23 +0200
From: PAUSE <upload@[...].de>
To: "Barrie Slaymaker" <RBS@[...].org> , cpan-testers@[...].org
Reply-To: cpan-testers@[...].org
Subject: CPAN Upload: R/RB/RBS/XML-SAX-Machines-0.37.tar.gz
The uploaded file
XML-SAX-Machines-0.37.tar.gz
has entered CPAN as
file: $CPAN/authors/id/R/RB/RBS/XML-SAX-Machines-0.37.tar.gz
size: 40782 bytes
md5: a36a1edd64fd3960377a4908fa8f8e7a
No action is required on your part
Request entered by: RBS (Barrie Slaymaker)
Request entered on: Thu, 05 Sep 2002 21:43:56 GMT
Request completed: Thu, 05 Sep 2002 21:45:22 GMT
Virtually Yours,
Id: paused,v 1.81 2002/08/02 11:34:24 k Exp k
----- End forwarded message -----
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|