[opencms-dev] <cms:contentshow element="Link"/>

Mario Jäger m.jaeger at alkacon.com
Wed Jun 29 14:11:14 CEST 2011


Hi Raghu,

I think, that you want to know how to get an xml content element value 
in a Java Bean for example.(?) Therefore, you have to unmarshal the file 
using the org.opencms.xml.content.CmsXmlContentFactory.unmarshal() 
method. You have the org.opencms.xml.content.CmsXmlContent object from 
that file then. With the XPath from the element (you want the value 
from) you can get the value using the getValue() methods on that object 
then.

Kind Regards,
Mario.



Am 29.06.2011 07:12, schrieb Raghu D:
> Hi All,
> Is it possible to get the value of <cms:contentshow element="Link"/> in
> java ?
>
> Thanks and Regards,
> *Raghu D*
>
>
>
>
>
>
>
>
> DISCLAIMER:
>
> "The information in this e-mail and any attachment is intended only for
> the person to whom it is addressed and may contain confidential and/or
> privileged material. If you have received this e-mail in error, kindly
> contact the sender and destroy all copies of the original communication.
> IBS makes no warranty, express or implied, nor guarantees the accuracy,
> adequacy or completeness of the information contained in this email or
> any attachment and is not liable for any errors, defects, omissions,
> viruses or for resultant loss or damage, if any, direct or indirect."
>
>
>
>
>
>
>
> _______________________________________________
> 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


-- 
-------------------
Mario Jäger

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org



More information about the opencms-dev mailing list