Generate sample XML file

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

edwinayin@qq.com
Ebase User
Posts: 24
Joined: Fri Nov 04, 2016 7:41 pm

Generate sample XML file

#1

Postby edwinayin@qq.com » Tue Dec 13, 2016 4:56 pm

Hello.

Is there a way of generating sample XML file like below?

Code: Select all

<xml>
<soap>
<soap>
<ebas>
  <ebas>1</ebas>
  <ebas>1</ebas>
  <ebas>1</ebas>
</ebas>
</soap>
</soap>
The detailed code won't go through, it should be <ebas> with ':NAME' after 'ebas'. </ebas> with ':NAME' after 'ebas', etc.

I know there is a way to generate similar XML code from Oracle but is there a way to do it through ebase.

Sorry, Newbie question here.

regards,
Edwina
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Dec 13, 2016 6:05 pm

Yes, quite a few different ways. Probably the easiest is to just construct the document using a server-side Javascript script. See this doc http://www.ebasetech.com/ebase/doc/Javascript_XML.htm. Having built the document you can then use an XML Resource to do something with it e.g. save to file, send it somewhere etc.
0 x

edwinayin@qq.com
Ebase User
Posts: 24
Joined: Fri Nov 04, 2016 7:41 pm

#3

Postby edwinayin@qq.com » Thu Dec 15, 2016 2:53 pm

Jon wrote:Yes, quite a few different ways. Probably the easiest is to just construct the document using a server-side Javascript script. See this doc http://www.ebasetech.com/ebase/doc/Javascript_XML.htm. Having built the document you can then use an XML Resource to do something with it e.g. save to file, send it somewhere etc.
Thank you!!!
0 x


Who is online

Users browsing this forum: No registered users and 47 guests