hi

Between XML::LibXML 1.52 and XML::LibXML 1.53 constants such as 
XML_COMMENT_NODE were moved to XML::LibXML::Common.  The are two methods 
I see of fixing this. First it apply the patch I attached to 
XML::LibXML's LibXML.pm or otherwise fixup XML::LibXML.  The other is to 
add "use XML::Common qw(:libxml);" to all the bits that need it.  I went 
with the patch because it's easier and means stuff will still work with 
older versions of XML::LibXML.

Jason Adams

Chris Fedde wrote:

>I'm sorry to interrupt with such a mundane request. But perhaps you can
>point out the error of my ways.
>
>when make test under perl 5.8.0 reaches t/02language I get a failure
>message as pasted in below.  I've seen this problem twice now.   the
>problem occurs whether I install using CPAN or do it "longhand" using
>Makefile.PL directly.   It fails in the same way on two different systems
>Solaris 8 and FreeBSD. 
>
>What is it that I am doing wrong?
>
>t/02language........NOK 7# Test 7 got: '0' (t/test_module.pl at line 11 fail #3)
>#   Expected: '1' (Bareword "XML_COMMENT_NODE" not allowed while "strict subs"
>in use at 
>/home/usr.local/src/perl/CPAN/build/AxKit-1.6/blib/lib/Apache/AxKit/Language/XSP.pm 
>line 968
>--
>    Chris Fedde
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


*** LibXML.pm.orig      Thu Sep 19 09:18:18 2002
--- LibXML.pm   Thu Sep 19 09:19:33 2002
***************
*** 20,23 ****
--- 20,48 ----
  @ISA = qw(DynaLoader Exporter);
  
+ @EXPORT = qw( XML_ELEMENT_NODE
+     XML_ATTRIBUTE_NODE
+     XML_TEXT_NODE
+     XML_CDATA_SECTION_NODE
+     XML_ENTITY_REF_NODE
+     XML_ENTITY_NODE
+     XML_PI_NODE
+     XML_COMMENT_NODE
+     XML_DOCUMENT_NODE
+     XML_DOCUMENT_TYPE_NODE
+     XML_DOCUMENT_FRAG_NODE
+     XML_NOTATION_NODE
+     XML_HTML_DOCUMENT_NODE
+     XML_DTD_NODE
+     XML_ELEMENT_DECL
+     XML_ATTRIBUTE_DECL
+     XML_ENTITY_DECL
+     XML_NAMESPACE_DECL
+     XML_XINCLUDE_START
+     XML_XINCLUDE_END
+     encodeToUTF8
+     decodeFromUTF8
+ );
+ 
+ 
  $skipDTD            = 0;
  $skipXMLDeclaration = 0;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to