Yet Another XML Parser (Progress OpenEdge Open Source) - Forum - OpenEdge Development - Progress Community

Yet Another XML Parser (Progress OpenEdge Open Source)

 Forum

Yet Another XML Parser (Progress OpenEdge Open Source)

This question is answered

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.

Scott Augé
President
Amduus Information Works, Inc.
Technical Services for Business and Government
http://www.amduus.com/cms

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

    Scott Augé
    President
    Amduus Information Works, Inc.
    Technical Services for Business and Government
    http://www.amduus.com/cms

All Replies
  • 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 */

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

    Scott Augé
    President
    Amduus Information Works, Inc.
    Technical Services for Business and Government
    http://www.amduus.com/cms

  • Thank you for the time invested!!!