×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi there,
i'm trying to parse an XML file in RPG with Aaron Bartells DOM parser
wrapper functions (www.mowyourlawn.com).
But Aarons DOMXPath_getElemCount() seems to return the wrong elementcounts.

The file i'm parsing is: http://www.myangel0ne.de/test.xml

When i parse it, the file lies in the ifs with CCSID 819.
I initialize my parser with:
eval
gDOMParser=DOMParser_init(IFS_FILE:gFileLocation:VALIDATE_NO:CCSID37:%PAddr(catchError))
gFileLocation is "/tmp/xmlfile.txt".

I want to work with these "WegPunkt" Elements.
As I see it, the file has 105 of them.

In my RPG Program
eval
gNodeCount=DOMXPath_getElemCount(gRoot:'MGSvrReturn/RouteListe/WegPunkte/WegPunkt')
keeps telling me that there are just 84 of these elements.

The other time i had 134 elements and RPG meant there are just 116.

Everything else but these elementcounts works really fine.
Maybe anyone here has an idea whats wrong with my program.


- Martin



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.