×

Good News Everybody!

The new search engine is LIVE!

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




yep, expat rocks. 
It's much faster than the original IBM xml toolkit or the IBM supplied 
java parsers.

And it's easy to code.
see http://www.myangel0ne.de/code/ (german comments :) )
With this program I wrote around 500k records yesterday to my outfile 
without any problems.

I get the xml data from an ifs file, but parsing a string with xml data in 
it is even easier:

§§parm2=%trim(§§parm2);
if (XML_Parse(p:§§parm2:%len(%trim(§§parm2)):+
    done)=XML_STATUS_ERROR);
   dietxt='Parse error at line '
          + %char(XML_GetCurrentLineNumber(p)) + ': '
          + %str(XML_ErrorString(XML_GetErrorCode(p)));
endif;

It's the same, but without the read() stuff.
You should look at scotts examples, they provide you all information you 
need.

- Martin

----------------------------------------------------------------------------------

Sorry I read the question wrong if you need to read a XML document I use 
Expat with Scotts Service Programs and it works great!!!!

Check out Scotts Site and iSeriesNetwork because he did some great Club 
Tech iSeries Programming Tips... I think it was in two parts...  Works 
great we average about 50 to 60 XML transactions sent to our iSeries that 
are parsed just fine!

Thanks-john


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.