Re: parsing scalars instead of files?
Lev Lvovsky <[email protected]> Wed, 14 Mar 2007 14:52:57 -0700
| Newsgroups | gmane.text.xml.xerces-p.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mar 14, 2007, at 1:22 PM, Garrett, Philip (MAN-Corporate) wrote:
> $input = XML::Xerces::MemBufInputSource->new($text);
> $parser->parse($input);
>
> You can also pass it a filename ("system id") if you want it to be
> identified in error messages:
>
> # reports errors as coming from foo.xml, but uses xml in $text
> $input = XML::Xerces::MemBufInputSource->new($text,"foo.xml");
perfect, thanks for your help!
-lev