Anyone used XML::Smart ?

Edwardson, Tony Tony.Edwardson at commerzbank.com
Tue Dec 11 05:56:53 PST 2007


> Rather than trying lots of syntaxes, I'd get Data::Dumper to output
> the contents of $obj and figure out the right one from its structure

Data::Dumper doesn't help here because XML::Smart treats each not as an
object so you can refer to each as a hash, list or scalar so you can't
determine anything from the internal structure.

I have just stumbled on to how to do it ;-)
You have to do it in two stages, a search stage like this

my $job = $obj->{'uc-export'}{JOBS_UNIX}('name','eq', 'JOB1');
and an assignment like this using the object returned from the search
$job->{SCRIPT}{MSCRI}->content("CHANGED TO THIS");

Nasty, but it works

Tony
-- 


********************************************************************** 
This is a commercial communication from Commerzbank AG.

This communication is confidential and is intended only for the person to
whom it is addressed.  If you are not that person you are not permitted to
make use of the information and you are requested to notify
<mailto:LONIB.Postmaster at commerzbankib.com> immediately that you have
received it and then destroy the copy in your possession.

Commerzbank AG may monitor outgoing and incoming e-mails. By replying to
this e-mail you consent to such monitoring. This e-mail message and any
attached files have been scanned for the presence of computer viruses.
However, you are advised that you open attachments at your own risk.

This email was sent either by Commerzbank AG, London Branch, or by
Commerzbank Corporates & Markets, a division of Commerzbank. Commerzbank AG
is a limited liability company incorporated in the Federal Republic of
Germany. Registered Company Number in England BR001025. Our registered
address in the UK is 60 Gracechurch Street, London, EC3V 0HR. We are
regulated by the Financial Services Authority for the conduct of investment
business in the UK and we appear on the FSA register under number 124920. 

**********************************************************************



More information about the MiltonKeynes-pm mailing list