[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: XML Writer Service program
Nicolas,
Take a look at the attached source listing. I believe the procedures
BegTag, EndTag, AddElement, AddEmptyElem, AddData are doing what you
describe. I found them to be a useful shorthand to build up XML. It may
serve as a starting point for a general solution.
A sample of the xml it builds is attached as well
--rmc
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nicolas
Machado
Sent: Monday, July 06, 2009 3:34 PM
To: HTTPAPI and FTPAPI Projects
Subject: XML Writer Service program
Hi,
I'm starting a project that need to write xml files.
I know that there is no mora "rocket science" that wrinting to a stream
file in teh IFS.
But I'm wondering is someone has developed something like:
xml = pCreateXmlObject();
pWriteStartElement(xml : 'Invoice') ;
pWriteTag(xml : 'InvNro' : $InvoiceNumber ) ;
pWriteEndElement(xml)
To for example create this xml
<Invoice>
<InvNr>some value</InvNr>
</Invoice>
If anyone has something , please let me know.
--
.::.
Nicolas Machado
Metodo Argentina S.A.
_____________________
Tel: 02262 527431
Necochea, Buenos Aires.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
ÿþ 1 0 0 * @ B G N C L 1 0 / 2 0 / 0 8
2 0 0 * C R T B N D R P G P G M ( &