Re: XML-Smart
by I . B . other posts by this author
Nov 27 2007 10:10AM messages near this date
view in the new Beta List Site
XML-Smart
|
the sound of one method failing
& XSLT i had similar issue, following helped:
$xml-> {WBTS.Commissioning.Configuration.Parameters} = 111111111111 ;
$xml-> {WBTS.Commissioning.Configuration.Parameters}->set_node(1);
~i
On Nov 27, 2007 6:29 AM, <navid.solhjoo@[...].com> wrote:
>
>
>
> Hi,
>
> I am using XML-Smart-1.6.9 to access XML file and replace node values. This
> is my code:
>
>
> open (MYFILE, "> $filename");
> my $full_name;
> $full_name = "$basefiledir"."/"."$filename";
> my $xp = XML::XPath->new(filename => $full_name);
> $mypath = '/WBTS.Commissioning.Configuration.Parameters';
> my $xml = new XML::Smart( $full_name , 'XML::Smart::Parser' ) ;
> $xml->{WBTS.Commissioning.Configuration.Parameters} = 111111111111 ;
> my @content = $xml->{WBTS.Commissioning.Configuration.Parameters}->content ;
> print "Value3 = #$content[0]#\n" ;
>
> Unfortunately it doesn't seem to replace the value at all. Would you have
> any advice?
>
> Regards
> Navid
> _______________________________________________
> Perl-XML mailing list
> Perl-XML@[...].com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
>
Thread:
Navid Solhjoo
I . B .
|