I use the following approach to parse XML contents with apache commons' digester:<br><span style="font-family: courier new,monospace;"><br><span style="font-family: courier new,monospace;">org.opencms.file.CmsObject cmso = 
cms.getCmsObject();</span></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">org.opencms.CmsFile resource = cmso.readFile(uri);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"><br>ByteArrayInputStream xmlInput = new ByteArrayInputStream(resource.getContents()); <br>// resource.getContents() returns a byte[]<br><br style="font-family: courier new,monospace;">
</span><span style="font-family: courier new,monospace;">MyObject result = (</span><span style="font-family: courier new,monospace;">MyObject)</span><span style="font-family: courier new,monospace;">digester.parse(xmlInput);
<br>// Just use an XSL Transformer instead of this<br>...<br></span><br><br>hth<br><br>Sigi<br><br><br><div><span class="gmail_quote">2006/1/25, Mirko Calvaresi <a href="mailto:m.calvaresi@opent.it">m.calvaresi@opent.it</a>
 <<a href="mailto:Mirko.Calvaresi@chopin06.register-europe.com">Mirko.Calvaresi@chopin06.register-europe.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p>Hello everyone, i'm wondering if could be a good solution to trasform xml content to html using xslt.</p>
<p>How i get from org.opencms.* package the xml file (raw) for each content?</p>
<p>Thank you</p>


<br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">
http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Mit freundlichen Grüßen<br><br>Siegfried Puchbauer