when there is a root container and an item inside, i can get the data, but when there is a root container with a container with the item, it is giving me an error. please could someone help me. i am attaching the files(my DCR and the ipl file).
DCR name : Entry
IPL file :
#!F:\Interwoven\TeamSite\httpd\iw-bin/iw-perl/bin/iwperl
use TeamSite::CGI_lite;
use TeamSite::Config;
use XML:

OM;
my $parser = new XML:

OM:

arser;
my $doc = $parser->parsefile ("Entry2");
my $root = $doc->getDocumentElement();
print "\nThe root element is ", $root->getNodeName(), ".\n";
my
@children = $root->getChildNodes();
print "There are ", scalar(
@children), " child elements.\n";
print "They are: \n";
foreach my $child ($root->getChildNodes())
{
print "hi";
print $child->getNodeName(), " = ", $child->getFirstChild()->getData(), "\n";
}