Recent Changes - Search:

Accueil

OpenSSL

SyncML

Apache Portable Runtime

Libxml2

Net-snmp

CUrl

Boost

Perl

ZLib

Samba

VPN

Serveurs de messagerie

edit

Libxml2/Libxml2-perl

Libxml2.Libxml2-perl History

Hide minor edits - Show changes to output

July 10, 2007, at 12:07 PM by Arnaud Grandville -
Changed line 94 from:
- [[http://search.cpan.org/~msergeant/XML-XPath-1.13|XML::XPath]],\\
to:
- [[http://search.cpan.org/~msergeant/XML-XPath-1.13|XML::XPath]], Sous windows, il faudra modifier de MakeFile.PL en ajoutant l'extension .pl au fichier de la ligne '' 'EXE_FILES' => [ 'examples/xpath' ], '' et ajouter cette extension au fichier indiqué.\\
July 10, 2007, at 11:18 AM by Arnaud Grandville -
Changed lines 93-98 from:
- [[http://search.cpan.org/~pajas/XML-LibXML|XML::LibXML]]
- [[http://search.cpan.org/~msergeant/XML-XPath-1.13|XML-XPath]]
- [[http://search.cpan.org/~pajas/XML-LibXML|XML::LibXML]]


to:
- [[http://search.cpan.org/~pajas/XML-LibXML|XML::LibXML]],\\
- [[http://search.cpan.org/~msergeant/XML-XPath-1.13|XML::XPath]],\\
- [[http://search.cpan.org/~pajas/XML-LibXML|XML::LibXML]]\\


July 10, 2007, at 11:17 AM by Arnaud Grandville -
Changed lines 94-95 from:

to:
- [[http://search.cpan.org/~msergeant/XML-XPath-1.13|XML-XPath]]
- [[http://search.cpan.org/~pajas/XML-LibXML|XML::LibXML]]


June 25, 2007, at 05:14 PM by Arnaud Grandville -
Added lines 4-5:
Si vous ne disposez pas du compilateur nmake sur votre poste la page http://johnbokma.com/perl/make-for-windows.html vous apportera une aide précieuse.\\
May 20, 2007, at 10:45 PM by Arnaud Grandville -
Changed lines 1-2 from:
Procécure de compilation du wrapper libxml2 pour Perl.
to:
(:keywords libxml2, perl, compilation:)
Procécure de compilation et d'intégration
du wrapper libxml2 pour Perl.
May 14, 2007, at 01:17 PM by Arnaud Grandville -
Changed lines 107-108 from:
$doc->setDocumentElement( $root );
to:
Changed lines 139-141 from:
>>teal background-color:#f0f0f0 padding=5px font-family=monospace<<
to:

%block bgcolor=#f0f0f0 font-family=monospace padding=5px%[@
Changed lines 145-152 from:
0030h: 22 63 e9 72 e9 6d 6f 6e 69 65 22 2f 3e 0a      "cÚrÚmonie"/>.
to:
0030h: 22 68 65 6c 6c 6f 20 77 6f 72 6c 64 22 2f 3e 0a  "hello world"/>.

<?xml version="1.0" encoding="UTF-8"?>
<foo bar="hello world"/>

@]

Deleted lines 153-161:
<?xml version="1.0" encoding="UTF-8"?>\\
<foo bar="cérémonie"/>\\
>><<





\\
May 14, 2007, at 01:05 PM by Arnaud Grandville -
Changed lines 141-144 from:
0000h: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31  <?xml version="1\\
0010h: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54  .0" encoding="UT\\
0020h: 46 2d 38 22 3f 3e 0a 3c 66 6f 6f 20 62 61 72 3d  F-8"?>.<foo bar=\\
0030h: 22 63 e9 72 e9 6d 6f 6e 69 65 22 2f 3e 0a        "cÚrÚmonie"/>.\\
to:
0000h: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31  <?xml version="1
0010h: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54  .0" encoding="UT
0020h: 46 2d 38 22 3f 3e 0a 3c 66 6f 6f 20 62 61 72 3d  F-8"?>.<foo bar=
0030h: 22 63 e9 72 e9 6d 6f 6e 69 65 22 2f 3e 0a        "cÚrÚmonie"/>.
May 14, 2007, at 01:03 PM by Arnaud Grandville -
Changed lines 141-147 from:
0000h: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31  <?xml version="1
0010h: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54  .0" encoding="UT
0020h: 46 2d 38 22 3f 3e 0a 3c 66 6f 6f 20 62 61 72 3d  F-8"?>.<foo bar=
0030h: 22 63 e9 72 e9 6d 6f 6e 69 65 22 2f 3e 0a        "cÚrÚmonie"/>.

<?xml version="1.0" encoding="UTF-8"?>
<foo bar="cérémonie"/>
to:
0000h: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31  <?xml version="1\\
0010h: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54  .0" encoding="UT\\
0020h: 46 2d 38 22 3f 3e 0a 3c 66 6f 6f 20 62 61 72 3d  F-8"?>.<foo bar=\\
0030h: 22 63 e9 72 e9 6d 6f 6e 69 65 22 2f 3e 0a        "cÚrÚmonie"/>.\\
\\
<?xml version="1.0" encoding="UTF-8"?>\\
<foo bar="cérémonie"/>\\
May 14, 2007, at 01:02 PM by Arnaud Grandville -
Changed lines 97-98 from:
to:
#
Changed lines 100-102 from:

my $doc = XML
::LibXML->createDocument;
my $root = $doc->createElementNS( "", "foo" );
to:
use IO::File;

my $doc = XML::LibXML::Document->createDocument("1.0","UTF-8");
my $root = $doc->createElement("foo" );
my $attr = $doc->createAttribute( "bar", "hello world" );
$root->setAttributeNodeNS( $attr ); 
Changed lines 107-111 from:
 
my $attr = $doc->createAttributeNS( "bar", "bar:foo", "test" );
$root->setAttributeNodeNS( $attr ); 

print $doc->serialize_html();
to:
$doc->setDocumentElement( $root );

print dumpvar($doc->toString(0));

sub dumpvar{
my $var = shift(@_);
#print "length:".length($var)."\r\n";
for($i = 0; $i < length($var); ) {
printf("%04xh: ",$i);
$string="";
for ($a = $i; $a < $i+16; $a++) {
if($a < length($var)){
$p = ord(substr($var, $a, 1));
printf("%02x ",$p);
if($p>31){
$string=$string.chr($p);
}
else{
$string=$string.".";
}
}else{
printf("  ");
}
}
print " ".$string."\r\n";
$i=$a;
}
print "\n\r";

}
Changed lines 141-147 from:
<foo xmlns:bar="bar" bar:foo="test"></foo>
to:
0000h: 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31  <?xml version="1
0010h: 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54  .0
" encoding="UT
0020h: 46 2d 38 22 3f 3e 0a 3c 66 6f 6f 20 62 61 72 3d  F-8"?
>.<foo bar=
0030h: 22 63 e9 72 e9 6d 6f 6e 69 65 22 2f 3e 0a        "cÚrÚmonie"/>.

<?xml version="1.0" encoding="UTF-8"?>
<foo bar="cérémonie"/
>
May 11, 2007, at 04:36 PM by Arnaud Grandville -
Changed lines 93-119 from:
to:
!!!8. Un exemple
Une fois les librairies installées, le code ci-dessous
(:source lang=perl :)
#!/usr/bin/perl -w

use XML::LibXML;

my $doc = XML::LibXML->createDocument;
my $root = $doc->createElementNS( "", "foo" );
$doc->setDocumentElement( $root );
 
my $attr = $doc->createAttributeNS( "bar", "bar:foo", "test" );
$root->setAttributeNodeNS( $attr ); 

print $doc->serialize_html();
(:sourcend:)

Donnera cette sortie
>>teal background-color:#f0f0f0 padding=5px font-family=monospace<<
<foo xmlns:bar="bar" bar:foo="test"></foo>
>><<





\\
May 11, 2007, at 04:04 PM by Arnaud Grandville -
Changed lines 86-87 from:
!!!7. Faire la même chose avec, dans l'ordre :\\
to:
!!!7. Faire la même chose avec
dans l'ordre :\\
May 11, 2007, at 04:03 PM by Arnaud Grandville -
Changed lines 86-87 from:

to:
!!!7. Faire la même chose avec, dans l'ordre :\\
- [[http://search.cpan.org/~rberjon/XML-NamespaceSupport//|XML::NamespaceSupport]], \\
- [[http://search.cpan.org/~grantm/XML-SAX/|XML::SAX]],\\
- [[http://search.cpan.org/~pajas/XML-LibXML|XML::LibXML]]


May 11, 2007, at 02:57 PM by Arnaud Grandville -
Changed line 6 from:
D:\dev\perl\XML-LibXML-Common-0.13>Makefile.PL LIBS="D:\libxml2-2.6.23\win32\bin.msvc D:\zlib123" INC="-ID:\libxml2-2.6.23\include"\\
to:
D:\dev\perl\XML-LibXML-Common-0.13>'''Makefile.PL LIBS="D:\libxml2-2.6.23\win32\bin.msvc D:\zlib123" INC="-ID:\libxml2-2.6.23\include"'''\\
Changed lines 14-15 from:
@@Note (probably harmless): No library found for -lzlib@@
to:
@@Note (probably harmless): No library found for -lzlib@@\\
et\\
@@Common.xs(11) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or directory@@\\
si vous n'indiquez pas le chemin d'accès aux fichiers include.

Changed line 22 from:
D:\dev\perl\XML-LibXML-Common-0.13>nmake\\
to:
D:\dev\perl\XML-LibXML-Common-0.13>'''nmake'''\\
Changed lines 42-43 from:
D:\dev\perl\XML-LibXML-Common-0.13>nmake test
to:
D:\dev\perl\XML-LibXML-Common-0.13>'''nmake test'''
Changed lines 67-69 from:
Correspond à un problème de chargement de Common.dll qui a une dépendance avec la DLL libxml2.dll, veuillez donc à ce que cette dernière soit dans le ''path''.

to:
Correspond à un problème de chargement de Common.dll qui a une dépendance avec libxml2.dll.\\
Veillez
donc à ce que cette dernière soit dans le ''path''.

Changed lines 73-74 from:
D:\dev\perl\XML-LibXML-Common-0.13>nmake install\\
to:
D:\dev\perl\XML-LibXML-Common-0.13>'''nmake install'''\\
May 11, 2007, at 02:52 PM by Arnaud Grandville -
Added lines 12-15:
%left bgcolor=#ffffcc border='1px dotted red' padding=5px%Si vous n'indiquez pas les chemins d'accès aux librairies, vous obtiendrez ces messsages\\
@@Note (probably harmless): No library found for -llibxml2@@\\
@@Note (probably harmless): No library found for -lzlib@@

May 11, 2007, at 02:35 PM by Arnaud Grandville -
Changed lines 1-2 from:
Procécure de compilation de libxml2 pour que la librairie soit acessible sous Perl.
to:
Procécure de compilation du wrapper libxml2 pour Perl.
Changed lines 20-21 from:
       C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp  -typemap C:\Perl\lib\ExtUtils\typemap -typemap typemap  Common.xs > Common.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv Common.xsc Common.c
        cl -c  -ID:\libxml2-2.6.23\include  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1    -DVERSION=\"0.13\"  -DXS_VERSION=\"0.13\"  "-IC:\Perl\lib\CORE"  -DHAVE_UTF8 -DHAVE_BLANK  Common.c\\
to:
       C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp  -typemap C:\Perl\lib\ExtUtils\typemap -typemap typemap \\
Common.xs > Common.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv Common.xsc Common.c
        cl -c  -ID:\libxml2-2.6.23\include  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT\\
-DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO\\
-DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1    -DVERSION=\"0.13\"  -DXS_VERSION=\"0.13\"  "-IC:\Perl\lib\CORE"\\
-DHAVE_UTF8 -DHAVE_BLANK  Common.c\\
May 11, 2007, at 02:30 PM by Arnaud Grandville -
Added lines 1-76:
Procécure de compilation de libxml2 pour que la librairie soit acessible sous Perl.

!!!1. Téléchargement et décompression de [[http://search.cpan.org/~phish/XML-LibXML-Common-0.13/|XML::LibXML::Common]]
!!!2. Générer le makefile spécifique à Windows
>>teal background-color:#f0f0f0 padding=5px font-family=monospace<<
D:\dev\perl\XML-LibXML-Common-0.13>Makefile.PL LIBS="D:\libxml2-2.6.23\win32\bin.msvc D:\zlib123" INC="-ID:\libxml2-2.6.23\include"\\
enable native perl UTF8\\
looking for -lxml2... yes\\
Writing Makefile for XML::LibXML::Common
>><<

!!!3. Initialiser les variables d'environnement MS Visual C++ (Vcvars32.bat)
!!!4. Compiler les librairies
>>teal background-color:#f0f0f0 padding=5px font-family=monospace<<
D:\dev\perl\XML-LibXML-Common-0.13>nmake\\
Microsoft (R) Program Maintenance Utility  Version 6.00.8168.0\\
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

cp Common.pm blib\lib\XML\LibXML\Common.pm
        C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp  -typemap C:\Perl\lib\ExtUtils\typemap -typemap typemap  Common.xs > Common.xsc && C:\Perl\bin\perl.exe -MExtUtils::Command -e mv Common.xsc Common.c
        cl -c  -ID:\libxml2-2.6.23\include  -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1    -DVERSION=\"0.13\"  -DXS_VERSION=\"0.13\"  "-IC:\Perl\lib\CORE"  -DHAVE_UTF8 -DHAVE_BLANK  Common.c\\
Common.c\\
Running Mkbootstrap for XML::LibXML::Common ()
        C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 Common.bs
.../...
>><<

!!!5. Tester la nouvelle librairie compilée

>>teal background-color:#f0f0f0 padding=5px font-family=monospace<<
D:\dev\perl\XML-LibXML-Common-0.13>nmake test

Microsoft (R) Program Maintenance Utility  Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        C:\Perl\bin\perl.exe "-Iblib\lib" "-Iblib\arch" test.pl
1..8\\
# Running under perl version 5.008007 for MSWin32\\
# Win32::BuildNumber 815\\
# Current time local: Fri May 11 14:02:42 2007\\
# Current time GMT:  Fri May 11 12:02:42 2007\\
# Using Test.pm version 1.25\\
ok 1\\
ok 2\\
ok 3\\
ok 4\\
ok 5\\
ok 6\\
ok 7\\
ok 8
>><<

%left bgcolor=#ffffcc border='1px dotted red' padding=5px%Problème de dépendance\\
@@Can't load 'blib\arch/auto/XML/LibXML/Common/Common.dll' for module XML::LibXML::Common:@@\\
@@load_file:Le module spécifié est introuvable at C:/Perl/lib/DynaLoader.pm line 230.@@\\
Correspond à un problème de chargement de Common.dll qui a une dépendance avec la DLL libxml2.dll, veuillez donc à ce que cette dernière soit dans le ''path''.


!!!6. Installer
>>teal background-color:#f0f0f0 padding=5px font-family=monospace<<
D:\dev\perl\XML-LibXML-Common-0.13>nmake install\\

Microsoft (R) Program Maintenance Utility  Version 6.00.8168.0\\
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.\\
\\
Installing C:\Perl\site\lib\auto\XML\LibXML\Common\Common.dll\\
Installing C:\Perl\site\lib\auto\XML\LibXML\Common\Common.exp\\
Installing C:\Perl\site\lib\auto\XML\LibXML\Common\Common.lib\\
Installing C:\Perl\site\lib\auto\XML\LibXML\Common\Common.pdb\\
Files found in blib\arch: installing files in blib\lib into architecture dependent library tree\\
Appending installation info to C:\Perl\lib/perllocal.pod
>><<



 
Edit - History - Print - Recent Changes - Search
Page last modified on July 10, 2007, at 12:07 PM