> Namespace prefix's aren't mandatory in css selectors but if you want
> to use them then try escaping the separator so it doesn't get treated
> like a pseudo-class.
> my $dom = Mojo::DOM->new($xml);
> # escaped namespace separator
> say
> $dom->at('manifest\:file-entry[manifest\:full-path="/"]')->{'manifest:media -type'};
> # without namespace prefix
> say $dom->at('file-entry[full-path="/"]')->{'manifest:media-type'};
> Have a look at the namespace tests for mojo::dom which is pretty easy
> to understand.
> https://github.com/kraih/mojo/blob/master/t/mojo/dom.t#L403
> Cheers,
> ~~
> c|_| alisterwest.com - mmm coffee!
> On 18 June 2012 13:35, marcos rebelo <ole...@gmail.com> wrote:
> > Hi all
> > I have a file with the content:
> > <?xml version="1.0" encoding="utf-8" standalone="yes"?><manifest:manifest
> xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"><manife st:file-entry
> > manifest:full-path="/"
> > manifest:media-type="application/vnd.oasis.opendocument.text"
> > /><manifest:file-entry manifest:full-path="content.xml"
> > manifest:media-type="text/xml" /><manifest:file-entry
> > manifest:full-path="styles.xml" manifest:media-type="text/xml"
> > /><manifest:file-entry manifest:full-path="meta.xml"
> > manifest:media-type="text/xml" /><manifest:file-entry
> > manifest:full-path="settings.xml" manifest:media-type="text/xml"
> > /></manifest:manifest>
> > this file seems to be correctly loaded, but I'm not able of getting the
> node
> > like:
> > $dom->at('manifest:file-entry[manifest:full-path="/"]')
> > I also try
> > for my $e
> ($dom->find('urn:oasis:names:tc:opendocument:xmlns:manifest:1.0:file-entry' )->each)
> > {
> > say $e->text;
> > }
> > and nothing
> > What am I doing wrong?
> > Best Regards
> > Marcos Rebelo
> > --
> > Marcos Rebelo
> > http://www.oleber.com/
> > Webmaster of http://perl5notebook.oleber.com
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Mojolicious" group.
> > To post to this group, send email to mojolicious@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mojolicious+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/mojolicious?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To post to this group, send email to mojolicious@googlegroups.com.
> To unsubscribe from this group, send email to
> mojolicious+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mojolicious?hl=en.