내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Generate XML using Sightly

Avatar

Level 2

Hi,

I would like to use Sightly to generate XML and properly XML escape the text. So what I would like to do is

<myTag>${properties.text @context='xml'}</myTag>

but this does not seem to be possible.

I have seen that in Sightly one has access to some Java backed objects like 'xssAPI'. So now I would like to use the method xssAPI.encodeForXML but I do not see how I could call this method in Sightly.

Any help how to do xml escaping in sightly is appreciated.

Thanks,
Ronald

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

With Slighty - you can pass operations to Java. You can easily create XML using Java and various Java APIs like W3C APIs. To learn how to work with Sighty and Java, see:

http://helpx.adobe.com/experience-manager/using/creating-sightly-component.html

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Level 10

With Slighty - you can pass operations to Java. You can easily create XML using Java and various Java APIs like W3C APIs. To learn how to work with Sighty and Java, see:

http://helpx.adobe.com/experience-manager/using/creating-sightly-component.html