[ 
https://issues.apache.org/jira/browse/CLEREZZA-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969759#action_12969759
 ] 

Reto Bachmann-Gmür commented on CLEREZZA-356:
---------------------------------------------

Yes, either that (which is most easily done if you implemented your service in 
scala as well) or parse the String using 
{
val string = 
$[org.clerezza.examples.webrenderingservice.MyWebRenderingService].getHtmlSnippet
scala.xml.XML.loadString("<elem>"+string+"</elem>").child 
} 

The construct with the <elem> is to supports string than do not have a single 
root element, as long as your string has a single root element you can also 
just do

scala.xml.XML.loadString(string)

> WebRenderingFunction
> --------------------
>
>                 Key: CLEREZZA-356
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-356
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Reto Bachmann-Gmür
>            Assignee: Reto Bachmann-Gmür
>
> It shall be possible to expose services providing WebRendering Functions 
> available in ScalaServerPages. Webrendering Functions are functions without 
> side effects that deliver an XML snippet for a list of argument values.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to