[progress Communities] [progress Openedge Abl] Forum Post: Re: Sax-writer (xml)

  • Thread starter Thread starter Alex Herbstritt
  • Start date Start date
Status
Not open for further replies.
A

Alex Herbstritt

Guest
You can do this by using START-ELEMENT and END-ELEMENT with no content in between them. Here is a code snippet: define variable swh as handle no-undo. create sax-writer swh. swh:set-output-destination("FILE", "emptyelement.xml"). swh:start-document(). swh:start-element("root"). swh:start-element("empty"). swh:end-element("empty"). swh:end-element("root"). swh:end-document(). And here is the output. I think that it has the empty element that you desire.

Continue reading...
 
Status
Not open for further replies.
Back
Top