Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

XML Output Coming to RPG IV

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    XML Output Coming to RPG IV

    ** This thread discusses the article: XML Output Coming to RPG IV **
    With V5R5 rumored to be released in 2008, that sounds like one heck of a long time between releases if we consider that two years is a lifetime in todays software world.

    Leave a comment:


  • R.Cozzi
    replied
    XML Output Coming to RPG IV

    ** This thread discusses the article: XML Output Coming to RPG IV **
    Not sure what this means. But you can add anything you want to the code. Just add something like:
     When %subst(xmlin:i:1) = X'6A' eval Symb = '|' 

    Leave a comment:


  • R.Cozzi
    replied
    XML Output Coming to RPG IV

    ** This thread discusses the article: XML Output Coming to RPG IV **
    Hans, Yes, I know that. The original version of EscapeXML modified the input parameter (used it as the work field) and then returned it. The updated version passed in a second parm along with the 3rd parm (its length). I never changed the first parm from VALUE to CONST. In my other code (in xTools and iSockets) I do have overflow protection. I suppose it was omitted, again due to the nature of the modification I made to remove the lengthy return value. As for hungarian notation, since I mostly program in C++, I tend to habbitually type character values with szXXXX prefixes. But there's not necessary. At least I don't use those @ # $ symbols I see so often! Here's a revised version of the routine. What do you think?
    Code

    Leave a comment:


  • Guest's Avatar
    Guest replied
    XML Output Coming to RPG IV

    ** This thread discusses the article: XML Output Coming to RPG IV **
    Bob, I've run into other characters that also need to be escaped. We've had problems with the pipe character in our feeds. The pipe character is x'6A' and it needs to be replaced with ¦. Matt

    Leave a comment:


  • H.Boldt
    replied
    XML Output Coming to RPG IV

    ** This thread discusses the article: XML Output Coming to RPG IV **
    Bob: I have a couple of comments on the procedure escapeXML: First, as you know, passing character strings by VALUE is an expensive operation. Passing strings by reference is a lot faster. Second, there seems to be no protection against overflowing the output parameter. Potentially, the output could be 6 times longer than the input. Perhaps you should pass in the length of the output parm and test to make sure the output never exceeds that length? (Optional parameter nOutLen seems to be left unused.) Third, what's the purpose of those integer variables bP1, bP2, and bP3? And why is szXMLOut a *OMIT *NOPASS parameter? Oh yeah, one more thing? Why use Hungarian notation in the naming of your variables? Are szXMLIn and szXMLOut really zero-terminated strings? Cheers! Hans

    Leave a comment:


  • MCWebsite.Staff
    started a topic XML Output Coming to RPG IV

    XML Output Coming to RPG IV

    ** This thread discusses the article: XML Output Coming to RPG IV **
    ** This thread discusses the Content article: XML Output Coming to RPG IV0
Working...
X