<!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.6000.17102" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>Just noticed
that org.opencms.jsp.I_CmsXmlContentContainer has changed in
v8.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>This is bad news, as
I use this interface for reading structured content (with scriptlet
code). </SPAN></FONT><FONT face=Arial size=2><SPAN class=414532808-16092011>The
first problem I see is that the method hasMoreContent() is gone.
</SPAN></FONT><FONT face=Arial size=2><SPAN class=414532808-16092011>Can I just
use hasMoreResources() instead? Will I encounter other
problems?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>To illustrate,
here's an example of my existing code:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011>I_CmsXmlContentContainer structuredContent =
cms.contentload("singleFile", "%(opencms.uri)", EDITABLE);</SPAN></FONT><FONT
face=Arial size=2><SPAN class=414532808-16092011><BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>while
(structuredContent.hasMoreContent()) {<BR>
String title = cms.contentshow(paragraph, "Title"); // OpenCmsString
element</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011><BR> I_CmsXmlContentContainer
paragraph = cms.contentloop(structuredContent, "Paragraph");</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>
while (paragraph.hasMoreContent())
{<BR> String heading =
cms.contentshow(paragraph, "Heading"); // OpenCmsString
element<BR> String text =
cms.contentshow(paragraph, "Text"); // OpenCmsHtml element</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>
}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011>}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=414532808-16092011>Best
regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=414532808-16092011>Paul</SPAN></FONT></DIV></BODY></HTML>