#7 Using BSF400Rexx

Solution available
closed
nobody
ooRexx (4)
5
2014-04-24
2013-01-28
No

Hello,

I am reviewing whether I can use OOREXX with BSF400Rexx for a project of converting TXT files into XLM files in respect of SEPA Direct Debit. I believe from what I have read so far it is feasible but I don't know yet how to start. An example would of course be more than helpful.

Any help I can receive is most welcome.

Kindest regards, Danny - Belgium.

Discussion

  • Rony G. Flatscher

    Hi Danny,

    Can you explain a little bit more what you are seeking?

    Usually, you do not need any Java functionalities to create XML-encoded files from text files, plain [oo]Rexx will suffice.

    Nevertheless, you may have some Java class libraries that do already what you want and you wish to drive/use them via ooRexx?

    ---rony

     
  • Danny De Wilde

    Danny De Wilde - 2013-01-29

    Hello Rony,

    Many thanks for your prompt reply.

    In theory it is very basic what I want to do: writing a XML-encoded file from a plain text file. As I have never written any XML-encoded file, I am sure where to start exactly.

     
  • Danny De Wilde

    Danny De Wilde - 2013-01-29

    Sorry Rony,

    My message was sent before it was finished. The last sentence should have been '... I am unsure where to start exactly.' In fact what needs to be done is well described in the documentation (http://www.febelfin.be/sites/default/files/files/Standard-CreditTransfer-v2-EN_0.pdf). I just don't know what the best approach would be using OORexx. I assume that writing a class is most likely the way to go. As I learn easily from examples I would very much appreciate if and when there is an example available, to get a copy of it.

    I have been using (OO)Rexx since the 80's in fairly difficult scripts and very often in conjunction with SQLEXEC and later with Rexx/SQL.

    Any direction will help.

    Many thanks in advance.

     
  • Rony G. Flatscher

    Hi Danny,

    for the purpose that you have, creating XML-encodings for payment data you have no need for BSF4ooRexx. You can create these encodings according to the specifications that you provided a link for. Of course, you can take advantage of ooRexx by creating classes that handle the encoding for different purposes (e.g. automatically supplying the end tags).

    ---

    However, if you also have eventually the task to extract the encoded payment information from XML-encoded text files, then indeed, BSF4ooRexx might come in to be very handy. It allows you to take advantage of the Java-built-in SAX- and DOM-parsers and allows you to take advantage of other Java class libraries that specialize in parsing XML-encoded data.

    In this case please be aware, that BSF4ooRexx comes with sample examples that demonstrate how to use ooRexx to process SAX- or DOM-parsed data. You can find them in "bsf4oorexx/samples/SAX" and "bsf4oorexx/samples/DOM". If you point your web browser to these locations you will get a brief description of these.

    The nice thing here is, that there is no need to create your own XML-parser in ooRexx (which actually can be quite tricky), but you can directly take advantage of the existing, tested and maintained Java class libraries.

    HTH,

    ---rony

     
  • Rony G. Flatscher

    • status: open --> closed
    • Group: --> Solution available
     
  • Rony G. Flatscher