On Monday 19 July 2004 HH:04:06, David Arnold wrote:
> All

Good morning,

>
> I tried to run this:
>
[..]
> my $resp_xml=XMLin('./Responses.xml',forcearray=>1);
>
> print Dumper $resp_xml;
>
> On this file:
>
> [EMAIL PROTECTED] perlxml]# cat -A Responses.xml
>  <results id="Quiz1" file="Quiz1.pdf" n=3><question n=1 type="mc"
[..]
>
> And I got this error message:
>
> [EMAIL PROTECTED] perlxml]# ./Responses.pl
> Not a quote character [Ln: 1, Col: 38]
>
> Can anyone help?

maybe. ;-)

As far as I know, you must quote all attribute values in XML, i..e. the first 
line of your file should be
  <results [..] n="3">
instead of
  <results [..] n=3>

Otherwise it's not valid XML and can probably not be parsed correctly.

Taking a look at your file, it looks like you'll have the problem elsewhere as 
well - it might be a good idea to take a look at the code that is producing 
this XML file.

HTH,

Philipp

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to