use TeamSite:CRparser; my $xml = 'dcrfilename'; my $parser = TeamSite:CRparser->new(); # create a DCRparser my $docnode = $parser->parse($xml,'dcr'); # fetch "document node"
I have already gone through document, I know that dcr is default mode.But even after removing dcr frommy $docnode = $parser->parse($filename,'dcr'); its giving same error.
Parser does not read the File, you have to do it yourself. First parameter of the "parse" Method must be String that contains XML to be parsed, not the File Path
What do you exactly mean by 'String that contains XML to be parsed'
[post=124331]String that contains XML to be parsed[/post]
how can I get complete xml to be parsed in one string?
how can I get complete xml to be parsed in one string?I triediw_load_dcr var='c' file='\\Path\new' iw_value name='dcr.Testing.language'
var='c'