tree.loadXml throws error when XML is loaded using jsp


I have two jsps, treeView.jsp calls tree.jsp using the tree.loadXMl(tree.jsp) function as shown below. The inner tree.jsp(also shown below) should load an xml using a stringBuffer. The stringBuffer is passed as a session attribute and it contains the xml contents as shown at the bottom of this message.

However I get the following errors: Error Type: LoadXML, Description: Incorrect XML and then Error Type: Data Structure, Description: XML reffers to not existing parent

Please let me know what might be wrong with my jsp files shown below. I have also pasted part of the xml which is generated.










<%@ page contentType=“text/xml” %>

<%@ taglib uri="/tags/struts-jstl" prefix=“c”%>

<%@ page import=“java.lang.String” %>

<%@ page import=“java.lang.StringBuffer” %>

<c:out value="${stringBuffer}" escapeXml=“true”/>


xml printout (when tree.jsp is viewed separately)


<?xml version="1.0" encoding="ISO-8859-1"?>

Component expects that correct XML will be received from loadXML call, in your case it is a mixed structure .

<?xml version="1.0" encoding="ISO-8859-1"?>

The output must not contain marked elements, must be XML tags only