ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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 .

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved