Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Strange XML parser behaviour using MSXML2 Version 4.0 or not...?

by perlsen (Chaplain)
on Mar 16, 2005 at 10:49 UTC ( [id://439899]=note: print w/replies, xml ) Need Help??


in reply to Strange XML parser behaviour using MSXML2 Version 4.0 or not...?

Hi, I just tried your input xslt is an input file and tried using xml::Twig module
i got the output. Is this your requirement?. if not i will give better result next time.

use XML::Twig; my $twig = new XML::Twig( TwigRoots => { 'xsl:param[@name=\'test\']' = +> \&output }); $twig->parsefile( shift @ARGV ); sub output { my( $tree, $elem ) = @_; print $elem->text, "\n"; } OUTPUT: testdata
  • Comment on Re: Strange XML parser behaviour using MSXML2 Version 4.0 or not...?
  • Download Code

Replies are listed 'Best First'.
Re^2: Strange XML parser behaviour using MSXML2 Version 4.0 or not...?
by mirod (Canon) on Mar 16, 2005 at 11:18 UTC

    If you have XML::Twig installed, note that you can use the xml_grep that comes with it:

    xml_grep -t 'xsl:param[@name="test"]' file.xslt

    The -t option is for text output (no tags around the result(s)), the rest should be pretty self-explanatory.

    Probably not of much help for the OP though...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://439899]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 05:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found