Can some one teach me how to change getContent() from journal article xml to html.
Here my code

<%
JournalArticle art = JournalArticleLocalServiceUtil.getArticle(journalrow.getGroupId(), journalrow.getArticleId());
            String contentXML = "";
            contentXML = art.getContent();
%>

<tr>
        <td class="title"><A href="<%=articleURL.toString()%>" onclick="window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;"><%=journalrow.getTitleCurrentValue() %></A></td>
</tr>
<tr>
        <td><a class="date"><%= dateFormat.format(journalrow.getModifiedDate()) %></a> - <a class="content"><%= journalrow.getContent()%></a></td>  
</tr>
<tr>
        <td class="date"></td>    
</tr>

output

What is Lorem
13/06/2013 - Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
]]>

there are symbols at the end of content

okay i got this solution.

<%
String articleContent = JournalContentUtil.getContent(groupId ,journalrow.getArticleId(), journalrow.getTemplateId(), null, themeDisplay.getLanguageId(), themeDisplay);
%>
<tr>
                <td class="title"><A href="<%=articleURL.toString()%>" onclick="window.open(this.href,'popupwindow', 'width=800,height=600,scrollbars,resizable'); return false;"><%=journalrow.getTitleCurrentValue() %></A></td>
            </tr>
            <tr>

                <td><a class="date"><%= dateFormat.format(journalrow.getModifiedDate()) %></a> - <a class="content"><%//= journalrow.getContent()%><%=articleContent %>
            <tr>
                <td class="date"></td>    
            </tr>
Member Avatar for LastMitch

Can some one teach me how to change getContent() from journal article xml to html.

<edit>

OK, I'm glad you solve it.

I was about to post this tutorial regarding JSP XML:

http://www.tutorialspoint.com/jsp/jsp_xml_data.htm

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.