<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=135471811-29082006><FONT face=Arial 
color=#0000ff size=2>That sort of String-stashing is what some of the OpenCms 
code does instead of returning null, so if you're committed to using that method 
then you'll have to check for the "???..." String.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=135471811-29082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=135471811-29082006><FONT face=Arial 
color=#0000ff size=2>Alternatively, you could use some of the other XML-related 
API, and process XML element content more directly.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=135471811-29082006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=135471811-29082006><FONT face=Arial 
color=#0000ff size=2>Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org 
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Joe 
Lam<BR><B>Sent:</B> 29 August 2006 12:06<BR><B>To:</B> 
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] need help on 
CmsJspXmlContentBean.contentshow(I_CmsXmlContentContainer container) 
<BR></FONT><BR></DIV>
<DIV></DIV><SMALL><FONT face="Courier New">I am using 
CmsJspXmlContentBean.contentloop and CmsJspXmlContentBean.contentshow to read 
data from structured content.<BR>I wonder how to check existance of a field 
before I do contentshow.<BR>I expect contentshow(I_CmsXmlContentContainer 
container) return null on a non-exist field (for that field I didnt click the 
Add button which showing "(Click on the New button on right side...)"). <BR>but 
it returns "??? fieldname ???"<BR><BR>any 
help?<BR><BR><BR>Joe<BR><BR><BR></FONT></SMALL></BODY></HTML>