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.
If it works for ya, it works! Thanks for taking the time to learn it.
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.
Thank you for the time invested!!!