W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

getData - Elements/Nodes will null values

From: Frank Fumic <Frank.Fumic@alphawest.com.au>
Date: Mon, 16 Apr 2001 16:25:42 +0800
Message-ID: <EA0466720A21D211B6C800104B2B75E204BE9BF2@herculis.alphawest.com.au>
To: "'www-dom@w3.org'" <www-dom@w3.org>

Hi 

I am having success with this command, with the exception of nodes that
return NULL values. That is, the node actaully exists but there is no data
for that node.
eg:  <SellerPartNumber></SellerPartNumber>

In addition I am using the following commands.
	my $LineProdCode = $line->getElementsByTagName ("SellerPartNumber");
     $Item  = $LineProdCode->[0]->getFirstChild->getData

It seems to crash on the getData. 

 The module seems to be erroring out somewhere. Is there a way of checking
for nodes that exist in an XML document that have null values. Is there any
way I can trap any errors caused by the null node scenario. I could not find
anything in the documentation.

You advice would be greatly appreciated.

Regards

Frank Fumic


AlphaWest Disclaimer
---------------------------------------------------------------------------
If this communication is not intended for you and you are not an authorised
recipient of this email you are prohibited by law from dealing with or
relying on the email or any file attachments. This prohibition includes
reading, printing, copying, re-transmitting, disseminating, storing or in
any other way dealing or acting in reliance on the information.
If you have received this email in error, we request you contact AlphaWest
immediately by returning the email to postmaster@alphawest.com.au and
destroy the original. This email is confidential and may contain privileged
client information. AlphaWest has taken reasonable steps to ensure the
accuracy and integrity of all its communications, including electronic
communications, but accepts no liability for materials transmitted.
---------------------------------------------------------------------------
Received on Monday, 16 April 2001 04:27:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT