[opencms-dev] Opencms with xml and Xlst
Siegfried Puchbauer
siegfried.puchbauer at gmail.com
Thu Jan 26 12:50:24 CET 2006
I use the following approach to parse XML contents with apache commons'
digester:
org.opencms.file.CmsObject cmso = cms.getCmsObject();
org.opencms.CmsFile resource = cmso.readFile(uri);
ByteArrayInputStream xmlInput = new ByteArrayInputStream(
resource.getContents());
// resource.getContents() returns a byte[]
MyObject result = (MyObject)digester.parse(xmlInput);
// Just use an XSL Transformer instead of this
...
hth
Sigi
2006/1/25, Mirko Calvaresi m.calvaresi at opent.it <
Mirko.Calvaresi at chopin06.register-europe.com>:
>
> Hello everyone, i'm wondering if could be a good solution to trasform xml
> content to html using xslt.
>
> How i get from org.opencms.* package the xml file (raw) for each content?
>
> Thank you
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
--
Mit freundlichen Grüßen
Siegfried Puchbauer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060126/b0422b70/attachment.htm>
More information about the opencms-dev
mailing list