Java object to XML DOM Tree Utility

Hi mashers,

the emml reference for the <script> tag at the OMA site mentions a conversion from a Java object to an XML DOM tree. Can anyone tell me if this is available in the Presto Developer Edition? I'm just trying something out and when I tried to use it it threw a lovely exception for me saying the function is not defined.

The reference in the OMA emml is:

// convert JavaObject to XML DOM tree;

xmlString=Packages.org.oma.emml.utils.ConversionUtils.javaToXml(dt);

Cheers, Innes (NZ)

 

 

 

 

0
Your rating: None
raj
raj's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 09/22/2008
Points: 2
Groups: None

Hi Innes,

The  presto developer edition equivalent of this is the following method :

        com.jackbe.jbp.transform.DataTransformer.javaToXml()

so, you can use it as

    xmlString=Packages.com.jackbe.jbp.transform.DataTransformer.javaToXml(dt)

This API is currently undocumented, and will be included in future release.

raj.  chief masher @ jackbe