Try this
CREATE SAX-WRITER hSAXWriter.
hSAXWriter:FORMATTED = TRUE. /* Format output so it is easy to read */
hSAXWriter:ENCODING = "ISO-8859-1". /* THIS IS FOR 'ANSI' */
hSAXWriter:SET-OUTPUT-DESTINATION("file",l_filename1).
hSAXWriter:START-DOCUMENT().
Hope this code helps
define temp-table ttAPI xml-node-name "ItemMaster"
field cComponent as character xml-node-name "part"
field cDesc as character xml-node-name "Desc" .
define temp-table ttAPISite xml-node-name "ItemSite"
field cpart as character xml-node-name "part"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.