X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README.pod;h=fc667fef37d1467389989b3f7b883c376c771166;hb=c0f0ce8910e956686984bd11508cf7df8bd2dcd3;hp=2bf0aa84e609eaea917aa784e837b9a4f900e070;hpb=3187745294af04bb4f3ece751c5d947f373039e5;p=catagits%2FDOM-Tiny.git diff --git a/README.pod b/README.pod index 2bf0aa8..fc667fe 100644 --- a/README.pod +++ b/README.pod @@ -77,8 +77,8 @@ names are lowercased and selectors need to be lowercase as well. my $dom = DOM::Tiny->new('
Hi!
'); say $dom->at('p[id]')->text; -If XML processing instructions are found, the parser will automatically switch -into XML mode and everything becomes case-sensitive. +If an XML declaration is found, the parser will automatically switch into XML +mode and everything becomes case-sensitive. # XML semantics my $dom = DOM::Tiny->new('Hi!
'); @@ -99,32 +99,34 @@ XML detection can also be disabled with the L"xml"> method. LI ⥠DOM::Tiny!
'); -Append HTML/XML fragment to this node. +Append HTML/XML fragment to this node (for all node types other than CTest
')->at('i')->parent; =head2 parse @@ -627,7 +634,7 @@ no parent. Parse HTML/XML fragment. # Parse XML - my $dom = DOM::Tiny->new->xml(1)->parse($xml); + my $dom = DOM::Tiny->new->xml(1)->parse('I ⥠DOM::Tiny!
'); -Prepend HTML/XML fragment to this node. +Prepend HTML/XML fragment to this node (for all node types other than C