Hello again,
I have an XML stream that I am trying to process and I can not figure out how. The problem I am running into is sometimes one of the nodes is coming back with multiple nodes in an array and sometimes it is not. How do I check what the format is before continuing.
It is either going to be:
$NRE_ID = $XMLref->{'diffgr:diffgram'}->{'NewDataSet'}->{'Table'}->[0]
+->{'CLIENT_ID'};
or
$NRE_ID = $XMLref->{'diffgr:diffgram'}->{'NewDataSet'}->{'Table'}->{'C
+LIENT_ID'};
WHen I use one or the other I get an error. I'd love to say if blah do else do. This seems like a really simple issue, but I can not figure it out from documentation.
Building the XML is as follows:
$XMLref = XMLin($returnStr, suppressempty => '');
$xmlstream = Dumper($XMLref);
Thanks.