Permalink
Browse files

POD updated

  • Loading branch information...
1 parent c875dd0 commit b05ca262df2c5a83bfe01a1e4ce846ae4557db5d @afiskon committed Sep 5, 2012
Showing with 57 additions and 59 deletions.
  1. +28 −29 README
  2. +29 −30 lib/XML/Parser/Tiny.pm6
View
57 README
@@ -11,36 +11,35 @@ SYNOPSYS
};
my $parser = XML::Parser::Tiny.new;
- if my $tree = $parser.parse($xml) {
- say $tree.perl;
+ my $tree = $parser.parse($xml);
+ say $tree.perl;
- # {
- # "head" => [
- # {
- # "name" => "xml",
- # "attr" => {
- # "version" => "1.0",
- # "charset" => "UTF-8"
- # }
- # }
- # ],
- # "body" => {
- # "name" => "doc",
- # "attr" => {},
- # "data" => [
- # "aaa",
- # {
- # "name" => "bbb",
- # "attr" => {
- # "key" => "<+>",
- # },
- # "data" => [ "<ccc>" ]
- # },
- # "ddd"
- # ]
- # }
- # }
- }
+ # {
+ # "head" => [
+ # {
+ # "name" => "xml",
+ # "attr" => {
+ # "version" => "1.0",
+ # "charset" => "UTF-8"
+ # }
+ # }
+ # ],
+ # "body" => {
+ # "name" => "doc",
+ # "attr" => {},
+ # "data" => [
+ # "aaa",
+ # {
+ # "name" => "bbb",
+ # "attr" => {
+ # "key" => "<+>",
+ # },
+ # "data" => [ "<ccc>" ]
+ # },
+ # "ddd"
+ # ]
+ # }
+ # }
DESCRIPTION
View
@@ -33,36 +33,35 @@ my $xml = q{<?xml version="1.0" charset="UTF-8" ?>
};
my $parser = XML::Parser::Tiny.new;
-if my $tree = $parser.parse($xml) {
- say $tree.perl;
-
- # {
- # "head" => [
- # {
- # "name" => "xml",
- # "attr" => {
- # "version" => "1.0",
- # "charset" => "UTF-8"
- # }
- # }
- # ],
- # "body" => {
- # "name" => "doc",
- # "attr" => {},
- # "data" => [
- # "aaa",
- # {
- # "name" => "bbb",
- # "attr" => {
- # "key" => "<+>",
- # },
- # "data" => [ "<ccc>" ]
- # },
- # "ddd"
- # ]
- # }
- # }
-}
+my $tree = $parser.parse($xml);
+say $tree.perl;
+
+# {
+# "head" => [
+# {
+# "name" => "xml",
+# "attr" => {
+# "version" => "1.0",
+# "charset" => "UTF-8"
+# }
+# }
+# ],
+# "body" => {
+# "name" => "doc",
+# "attr" => {},
+# "data" => [
+# "aaa",
+# {
+# "name" => "bbb",
+# "attr" => {
+# "key" => "<+>",
+# },
+# "data" => [ "<ccc>" ]
+# },
+# "ddd"
+# ]
+# }
+# }
=end code
=head1 DESCRIPTION

0 comments on commit b05ca26

Please sign in to comment.