[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Formatting Attributes of x-noderef object handles

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top