<HTML><BODY><br>Hello!<br><br>Can you help me with extractiong content from xml files with contentload tag?<br><br>I have a resource type Direction with following xsd:<br><br><p><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"></p><p><xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/></p><p><xsd:element name="Directions" type="OpenCmsDirections"/></p><p><xsd:complexType name="OpenCmsDirections"><br> <xsd:sequence><br> <xsd:element name="Direction" type="OpenCmsDirection" minOccurs="0" maxOccurs="unbounded"/><br> </xsd:sequence><br> </xsd:complexType></p><p><xsd:complexType name="OpenCmsDirection"><br> <xsd:sequence><br> <xsd:element name="Title" type="OpenCmsString" /><br> <xsd:element name="Text" type="OpenCmsHtml" /><br> <xsd:element name="Image" type="OpenCmsVfsFile" /><br> <xsd:element name="Link" type="OpenCmsVarLink" minOccurs="0" /><br> </xsd:sequence><br> <xsd:attribute name="language" type="OpenCmsLocale" use="required"/><br> </xsd:complexType></p><p><xsd:annotation><br> <xsd:appinfo><br> <mappings><br> <mapping element="Title" mapto="property:Title" /><br> <mapping element="Title" mapto="urlName" /><br> </mappings><br> <defaults><br> <default element="Title" value="Add a new title here" /><br> <default element="Text" value="Add your text" /><br> </defaults><br> <layouts><br> <layout element="Text" widget="HtmlWidget" configuration="downloadgallery" /><br> <layout element="Image" widget="ImageGalleryWidget" configuration="{useformat:true}" /><br> </layouts><br> <validationrules/><br> <relations/><br> <searchsettings containerPageOnly="true"/><br> </xsd:appinfo><br> </xsd:annotation></p><p></xsd:schema><br><br>I also have /sites/OpenCMSTest/service/index.jsp :<br></p><p><%@page buffer="none" session="false" trimDirectiveWhitespaces="true" %><br><%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %><br><%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><br><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><br><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><br><!doctype html><br><html lang="ru"></p><p><head><br> <meta charset="utf-8"><br> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><br> <link href="<cms:link>%(link.weak:/system/modules/my.template/resources/css/main.css</cms:link>" rel="stylesheet" type="text/css"><br> <title>Заголовок</title><br></head></p><p><body></p><p><header><br></header></p><p><main><br><%-- Define a Solr query --%><br><c:set var="solrQuery">?fq=type:Direction&sort=lastmodified desc</c:set></p><p><%-- Define a create path --%><br><c:set var="createPath">/sites/OpenCMSTest/.content/Direction/</c:set></p><p><%-- Collect the resources --%><br><cms:contentload collector="byContext" param="${solrQuery}|createPath=&{createPath}" preload="true" ></p><p><c:if test='${info.resultSize != 0}'><br> <cms:contentinfo var="info" /> <br> <c:if test='${info.resultSize != 0}'><br> <h3>Search results </h3><br> <cms:contentload editable="false"><br> <cms:contentaccess var="content" /><br> ${content.Title} <br /><br> </cms:contentload><br> </c:if><br> </c:if><br></cms:contentload></p><p><br></main></p><p><footer><br></footer></p><p><br></body><br></html><br><br>Also I have 3 file xml files (Direction-00001.xml, Direction-00002.xml, Direction-00003.xml) with content in /sites/OpenCMSTest/.content/Direction/ (see the attachment)<br><br>When opeining  /sites/OpenCMSTest/service/index.jsp  I'd like to extract Titles from xml files an show it in html.<br><br>But nothing happens. It seems that there are no search results.<br><br>What I'm doing wrong?</p><p><br><br></p><br><br><br><br><br>-- <br>Andrew</BODY></HTML>