P
Peter Judge
Guest
Given that the WRITE-{JSON,XML} methods give you no control over formatting other that “Is” and “IsNot” I think that I would do something along the lines of create an XmlOutputStream based on the Progress.IO.OutputStream where you apply formatting. There’s a Write( ) method you should override. No, it’s not as easy or fast as WRITE-XML, but at least it’s in one place. This OutputStream design can be used in various places (the HTTP client and webhandlers use it or a variant of it pervasively) and it’s nice for plugging in alternate writers (but also readers via the InputStream equivalent).
Continue reading...
Continue reading...