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...
Continue reading...