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!
> --
> You received this message because you are subscribed to the Google Groups
> "Mojolicious" group.
> To post to this group, send email to
mojol...@googlegroups.com.
> To unsubscribe from this group, send email to
>
mojolicious...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/mojolicious?hl=en.