Re: XML parsing in P6

2006-03-12 Thread Premshree Pillai
On 3/13/06, Luke Palmer <[EMAIL PROTECTED]> wrote: > Well, as Yuval points out, I've been dead for a while, so this bug may > have already been fixed, but if not: > > my $parser = XML::Parser::Lite::Tree::instance(); > my $tree = $parser.parse($xml_data); > > Should do the trick. This bug

Re: XML parsing in P6

2006-03-12 Thread Luke Palmer
On 3/13/06, Premshree Pillai <[EMAIL PROTECTED]> wrote: > On 3/13/06, Luke Palmer <[EMAIL PROTECTED]> wrote: > > Well, yeah. Just because you're using a Perl 5 module doesn't mean > > you use Perl 5 syntax. > > > > my $tree = XML::Parser::Lite::Tree::instance().parse($xml_data); > > Heh. I had

Re: XML parsing in P6

2006-03-12 Thread Premshree Pillai
On 3/13/06, Luke Palmer <[EMAIL PROTECTED]> wrote: > Well, yeah. Just because you're using a Perl 5 module doesn't mean > you use Perl 5 syntax. > > my $tree = XML::Parser::Lite::Tree::instance().parse($xml_data); Heh. I had tried that already. :-) This is the error I get in this case: ***

Re: XML parsing in P6

2006-03-12 Thread Yuval Kogman
On Mon, Mar 13, 2006 at 06:33:06 +, Luke Palmer wrote: > Luke Luke! You're back from the dead! *dance* -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: /me beats up some cheese: neeyah! pgpuZTuJK9VUu.pgp Description: PGP signature

Re: XML parsing in P6

2006-03-12 Thread Luke Palmer
On 3/12/06, Premshree Pillai <[EMAIL PROTECTED]> wrote: > On 3/13/06, Yuval Kogman <[EMAIL PROTECTED]> wrote: > > Paste code / errors? > > I have this bit of code: > > my $tree = XML::Parser::Lite::Tree::instance()->parse($xml_data); > > And following's the error Pugs throws out: > > unexpe

Re: XML parsing in P6

2006-03-12 Thread Premshree Pillai
On 3/13/06, Yuval Kogman <[EMAIL PROTECTED]> wrote: > Paste code / errors? I have this bit of code: my $tree = XML::Parser::Lite::Tree::instance()->parse($xml_data); And following's the error Pugs throws out: unexpected ">" expecting ":", term postfix, operator, ";" or "}" at te

Re: XML parsing in P6

2006-03-12 Thread Yuval Kogman
On Sun, Mar 12, 2006 at 21:42:59 +0200, Yuval Kogman wrote: > You can probably have a shell account on feather.perl6.nl (Juerd > needs your full name and I don't know if this can be done by proxy > or not), and definately on my machine, where you can use > screen/irssi to your heart's content, if

Re: XML parsing in P6

2006-03-12 Thread Yuval Kogman
On Mon, Mar 13, 2006 at 01:00:42 +0530, Premshree Pillai wrote: > On 3/13/06, Yuval Kogman <[EMAIL PROTECTED]> wrote: > > #perl6 on freenode might be a better choice - much more people are > > active. > > I know. I am currently at a friend's place, and seems like (for > whatever reason), his ISP h

Re: XML parsing in P6

2006-03-12 Thread Premshree Pillai
On 3/13/06, Yuval Kogman <[EMAIL PROTECTED]> wrote: > #perl6 on freenode might be a better choice - much more people are > active. I know. I am currently at a friend's place, and seems like (for whatever reason), his ISP has blocked certain ports (don't ask me to use a web-based client :-p). > Ye

Re: XML parsing in P6

2006-03-12 Thread Yuval Kogman
On Mon, Mar 13, 2006 at 00:27:32 +0530, Premshree Pillai wrote: > Hello, > > [not sure if this belongs to this list; if not, apologies, and maybe > point me to the right list] #perl6 on freenode might be a better choice - much more people are active. > New to P6. Just compiled Pugs on OS X, so a

XML parsing in P6

2006-03-12 Thread Premshree Pillai
Hello, [not sure if this belongs to this list; if not, apologies, and maybe point me to the right list] New to P6. Just compiled Pugs on OS X, so am just playing around. I was wondering if there's any XML parsing module available in Pugs. I saw an XML-SAX in misc/, but was wondering how to use it