Dear Shlomi,

I tried to install https://metacpan.org/release/XML-LibXML in my windows setup 
(using Strawberry Perl 5.18.1 on Windows 7) but it failed. Please suggest where 
am I going wrong?

Here is the output from console (command prompt)

C:\demo>cpanm XML::LibXML
--> Working on XML::LibXML
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0107.tar.gz ..
. OK
Configuring XML-LibXML-2.0107 ... N/A
! Configure failed for XML-LibXML-2.0107. See C:\Users\SHAJIK~1\.cpanm\work\1385
878181.5848\build.log for details.

Here is the content of the build.log file

[build.log]
cpanm (App::cpanminus) 1.7001 on perl 5.018001 built for 
MSWin32-x64-multi-thread
Work directory is C:\Users\SHAJIK~1/.cpanm/work/1385878277.6120
You have make G:\strawberry\c\bin\dmake.exe
You have LWP 6.05
Falling back to Archive::Tar 1.92
Searching XML::LibXML on cpanmetadb ...
--> Working on XML::LibXML
Fetching http://www.cpan.org/authors/id/S/SH/SHLOMIF/XML-LibXML-2.0107.tar.gz
-> OK
Unpacking XML-LibXML-2.0107.tar.gz
Entering XML-LibXML-2.0107
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.72)
Configuring XML-LibXML-2.0107
Running Makefile.PL
enable native perl UTF8
Checking for ability to link against xml2...no
Checking for ability to link against libxml2...libxml2, zlib, and/or the Math 
library (-lm) have not been found.
Try setting LIBS and INC values on the command line
Or get libxml2 from
  http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.

Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
to see the exact reason why the detection of libxml2 installation
failed or why Makefile.PL was not able to compile a test program.
-> N/A
-> FAIL Configure failed for XML-LibXML-2.0107. See 
C:\Users\SHAJIK~1\.cpanm\work\1385878277.6120\build.log for details.
[/build.log]


Please help.

Sincerely,
Shaji 
-------------------------------------------------------------------------------
Your talent is God's gift to you. What you do with it is your gift back to God.
-------------------------------------------------------------------------------



On Saturday, 30 November 2013 12:07 PM, Shaji Kalidasan <shajiin...@yahoo.com> 
wrote:
Dear Shlomi,

I want the XML output to include double quotes instead of &quot;. 

Example:-

In the following code snippet

$test_method->setAttribute("name","\"$count.$attribute_act\" duration-ms=\"0\" 
started-at=\"0\"");


I want the output (XML) to be

duration-ms="0" started-at="0"


One more issue. How can I include a newline after each end element so that the 
XML output is formatted?


Please explain how can I do it?


Thank you.
 
best,
Shaji 
-------------------------------------------------------------------------------
Your talent is God's gift to you. What you do with it is your gift back to God.
-------------------------------------------------------------------------------



On Friday, 29 November 2013 1:53 PM, Shlomi Fish <shlo...@shlomifish.org> wrote:
Hello Shaji,

On Fri, 29 Nov 2013 13:32:49 +0800 (SGT)
Shaji Kalidasan <shajiin...@yahoo.com> wrote:

> Dear Perlers,
> 
> I am trying to print double quotes in the output (output.xml) but it is
> printing &quot; instead of "". How can I include double quotes "" in the
> output. Please help.
> 

In XML, «&quot;» is an XML entity (see
https://en.wikipedia.org/wiki/Character_entity_reference ) which is the same as
giving double quotes - «"» and is often required if specified as the value of a
double quotes-enclosed attribute (e.g: «<mytag myattr="Hello &quot;Foo" />»),
so you should not worry about it being output instead.

Furthermore, I should note that according to
http://cpanratings.perl.org/dist/XML-DOM , XML::DOM has been under-maintained
and largely superseded by https://metacpan.org/release/XML-LibXML (which I
should note that I currently maintain). 

Regards,

    Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish      http://www.shlomifish.org/
Beginners Site for the Vim text editor - http://vim.begin-site.org/

Only two things are infinite: the universe, and Chuck Norris’s destruction
ability. And we cannot be sure about the former thanks to the latter.
    — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to