Miko O'Sullivan wrote:

>Andy Wardley wrote:
>
>>For example, it might be possible to do something like this:
>>
>>  use Perl6::XML;
>>
>>    <thingy>
>>        <blah>blah blah</blah>
>>    </thingy>
>>
>>  use Perl6;
>>
>>    print $thingy.blah;
>
>
>
>We already have the ability to embed foreign languages (XML, HTML,
>whatever) using here docs:
>
> $myml = MyXmlParser->new(<< '(MARKUP)');
>  <thingy>
>      <blah>blah blah</blah>
>  </thingy>
> (MARKUP)

As a side note, P6C now has the ability to inline code of a different
language, so something like this will work:

use inline 'XML', q[
   <thingy>
       <blah>blah blah</blah>
   </thingy>
   ...

   <XSLT PROCESSING STUFF>
];

Provided, of course, that there is an parrot/imcc targetted XML processor.  Who needs 
a P6ML now? (-:

Joseph F. Ryan
[EMAIL PROTECTED]

--
This message was sent using 3wmail.
Your fast free POP3 mail client at www.3wmail.com

Reply via email to