in reply to Re: Trouble in text manipulation
in thread Trouble in text manipulation

Great you are. Hats off Graff!
You're just like that covered my requirement, am going to use your code straight away by adding a small computation. In additional I need to sum the x axis values of 'text" elements get collapsed.
As am new for perl modules bit hard to understand your logic; will manipulate the code per my req.
The hardest part is: Even I loaded the XML::LibXML module its showing error like cant locate the loadable object for module XML::LibXML...
Can't locate loadable object for module XML::LibXML in @INC (@INC cont +ains: C:/P erl/lib C:/Perl/site/lib .) at C:/Perl/lib/DynaLoader.pm line 153 BEGIN failed--compilation aborted at C:/Perl/lib/XML/LibXML.pm line 15 +3. Compilation failed in require at tocgen_v3.pl line 4. BEGIN failed--compilation aborted at tocgen_v3.pl line 4.
Don't know what the problem is, keep on trying...
And...regarding the necessity of root element in input XML; I have it already; I was missed this to provide.
Many Thanks to All

Replies are listed 'Best First'.
Re^3: Trouble in text manipulation
by graff (Chancellor) on Aug 06, 2010 at 16:48 UTC
    Looks like a problem with how XML::LibXML was installed on your machine, maybe involving a dependency that is external to the module -- like maybe the GNU LibXML package is missing, or was installed in a "non-standard" path?

    GNU LibXML (a separate thing from cpan modules) needs to be installed first, and when you (re)install the cpan XML::LibXML modules, that installation process needs to know where to find the GNU LibXML stuff.

    It could be that your current XML::LibXML installation was done "by force", which would put all the XML/LibXML/*.pm files where they belong, even though there's no actual linkage to the GNU library (hence making the modules unusable). Good luck with (re)installing...