in reply to Re: how to get the number of elements with XML::Smart
in thread how to get the number of elements with XML::Smart
Hi shmem,
as the scalar() always returns 1 i now check with XML::Smart::null() for child elements of a node in the XML String ($offers as XML::Smart object).
if null() returns true, i set $num to zero;
else i get the correct number of child elements from scalar();
many thanks anyway!
regards,
makro