× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



 >Could you give a brief explanation of the XMLSAX parser? 
My previous post included an example program.  Let me know if that
didn't answer your questions. In general you tell the SAX parser which
elements you want to be notified of along with a procedure pointer that
the SAX parser should call in the event it comes across one of your
nodes (say elements).

For sending XML out from the iSeries I use CGIDEV2 because it takes all
of the XML out of my RPG programs and provides a good "templating" type
model. Brad Stone also has a similar product that touts 15 times speed
increase to CGIDEV2. 

References:
http://bvstools.com/erpgsdk/
http://www-922.ibm.com (CGIDEV2)


>When your XML parsing is working in an RPG program, where is the XML
data?
The parser allows for and IFS file (XMLSAX_parseIFS) and an alpha RPG
field (XMLSAX_parseMemory).

HTH,
Aaron Bartell




-----Original Message-----
From: rpg400-l-bounces+albartell=taylorcorp.com@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+albartell=taylorcorp.com@xxxxxxxxxxxx] 
Sent: Monday, October 11, 2004 9:35 AM
To: RPG programming on the AS400 / iSeries
Subject: XMLSAX (was [RPG XML] misuse of DOMXPath_getElemCount() ?)

Aaron,

Could you give a brief explanation of the XMLSAX parser?  Your web site
offers the download (which I am retrieving -- 22MB???) but little else
that I could see of that describes what it does.  I am also downloading
the rpg-xml-parser from your Code page; is this something different from
XMLSAX?

We are looking at a project in which we will need to "deal" with
XML-formatted data, both in receiving it on the AS/400 from a PC server
and sending it the other way as well.

When your XML parsing is working in an RPG program, where is the XML
data?
A stream file in the IFS?  A native AS/400 flat file?

FYI, we are not using Java for our project.

tia,
db

> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx / Bartell, Aaron L. (TC)
> Sent: Monday, October 11, 2004 10:14 AM
>
> Use the SAX parser instead that is also on my site.  It is quite 
> faster and less bulky.  I don't support the DOM parser wrappers I 
> wrote anymore because the SAX parser is the one to use.
>
> BTW, if you know Java that is the way you should be processing your
XML.
> WDSc has some amazing wizards to get you up and running with XML in 
> minutes, literally.
>
> Aaron Bartell

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.



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-2024 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.