Is there a way to XML encode a string?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Alf
Ebase User
Posts: 2
Joined: Fri Oct 22, 2010 9:57 am
Location: Caernarfon, Wales
Contact:

Is there a way to XML encode a string?

#1

Postby Alf » Thu Mar 22, 2012 11:51 am

Is there a way to XML encode a string? What we want to do is build up an XML string in a field, e.g.

Code: Select all

set REQUEST = '<serviceRequest>';
set REQUEST = REQUEST + '<name>DESCRIPTION</name>';
set REQUEST = REQUEST + '<value>' + xmlencode&#40;CONTRACT&#41; + '</value>';
set REQUEST = REQUEST + '</serviceRequest>';
Thanks
0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#2

Postby Wai » Mon Mar 26, 2012 8:56 am

Have you had a look at the XML resource and the Copy Adapter?
0 x

Alf
Ebase User
Posts: 2
Joined: Fri Oct 22, 2010 9:57 am
Location: Caernarfon, Wales
Contact:

#3

Postby Alf » Mon Mar 26, 2012 10:49 am

Thanks Wai, I'll have a look at them. I was looking at creating a custom Java function, but if there's a built-in way to do it I'd prefer that :)
0 x


Who is online

Users browsing this forum: No registered users and 23 guests