Re: XML-Xerces on MacOSX 10.3

Adam Witney <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <BCCFE0EF.32D5D%[email protected]>
>> t/DOMDocument.............ok 5/35125Use of uninitialized value in hash
>> element at /usr/local/install/XML-Xerces-2.3.0-4/blib/lib/XML/Xerces.pm line
>> 5191.
>> Use of uninitialized value in hash element at
>> /usr/local/install/XML-Xerces-2.3.0-4/blib/lib/XML/Xerces.pm line 5191.
>> Can't call method "getElementsByTagName" on an undefined value at
>> t/DOMDocument.t line 115.
>> # Looks like you planned 35125 tests but only ran 5.
>> # Looks like your test died just after 5.
> 
> Hmmm.. Looks odd.
> 
>> t/DOMPrint................ok 1/2#     Failed test (t/DOMPrint.t at line 62)
>> # Found []
>> # Looks like you failed 1 tests of 2.
> 
> Not sure why, but it's having trouble with some InputSource
> 
>> t/EntityResolver..........ok 2/9FATAL ERROR:
>> FILE:    /usr/local/install/XML-Xerces-2.3.0-4/samples/public.xml
>> LINE:    3
>> COLUMN:  85
>> MESSAGE: An exception occurred! Type:RuntimeException, Message:Could not
>> open DTD file '/usr/bin/samples/personal.dtd'
> 
> that path is totally bogus - you're running /usr/bin/perl, so somehow
> Xerces-C is looking in /usr/bin/samples for personal.dtd - this *must*
> be a Xerces-C problem.

Yup, it was /usr/bin/perl, I have actually just upgraded to 5.8.4 (in
/usr/local/bin/perl) and this error now says its looking for

....  DTD file '/usr/local/bin/samples/personal.dtd'


 
>> t/StdInInputSource........ok 2/3FATAL ERROR:
>> FILE:    
>> LINE:    0
>> COLUMN:  0
>> MESSAGE: An exception occurred! Type:XMLPlatformException, Message:Could not
>> open file: stdin
> 
> huh, looks like OSX doesn't define 'stdin' as a valid file handle??

I remember this being a problem on 10.2.8 as well

> None of these are new problems for OSX. You're xerces should still
> work fine. 
> 
> Adam when you run the Xerces-C samples like DOMCount do they work
> properly?

From the $XERCESCROOT/samples directory, this works ok

../bin/DOMCount ../samples/data/personal.xml

../samples/data/personal.xml: 906 ms (37 elems).

It seems that you have to define the relative path to personal.xml FROM the
bin directory, rather than the current directory. I don't though if this is
expected behaviour for xerces-c?

Thanks for your help jason

Adam



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.