Yet Another XML Parser (Progress OpenEdge Open Source)

Posted by scott_auge on 13-Nov-2017 21:26

Find at:

Yet Another XML Parser (Progress OpenEdge Open Source)

An object oriented open source routine for analyzing XML documents.  Download the zip and look into /doc for the PDF explaining how to use it.

Posted by scott_auge on 17-Jan-2018 09:54

If it works for ya, it works!  Thanks for taking the time to learn it.

All Replies

Posted by OctavioOlguin on 16-Jan-2018 07:58

Hi Scott!!!

I'm using greatest yaxmlparser.

But faced minor problem with "Big" (>32KB) data,  had to change following.....  what you think?

METHOD PUBLIC LONGCHAR FindByXPathAsLongChar
    (INPUT SearchXPath AS CHARACTER):

    DEFINE VARIABLE returnPar AS LONGCHAR NO-UNDO.


    FIND XMLContents NO-LOCK
        WHERE INDEX(XMLContents.XPath, SearchXPath) > 0
        AND XMLContents.Attribute = ""
        NO-ERROR.

    IF AMBIGUOUS XMLContents THEN RETURN ?.

    IF NOT AVAILABLE XMLContents THEN RETURN "".

    COPY-LOB FROM XMLContents.Data TO OBJECT returnPar.
    RETURN returnPar.

END. /* FindByXPathAsLongChar */



METHOD PUBLIC LONGCHAR FindByXPath
    (INPUT SearchXPath AS CHARACTER):

    DEFINE VARIABLE c AS LONGCHAR NO-UNDO.

    c = FindByXPathAsLongChar(SearchXPath).

    RETURN c.

END.  /* FindByXPath */

Posted by scott_auge on 17-Jan-2018 09:54

If it works for ya, it works!  Thanks for taking the time to learn it.

Posted by OctavioOlguin on 23-Jan-2018 18:49

Thank you for the time invested!!!

This thread is closed