|
>Doesn't the XML4PR have XML functions that are used to generate the tags for the root, elements, etc. that make it easier to generate XML ? Or, must one know exactly how to build the tags/content ? Yes, the XML4PR400 does have tools for you to use to do that, but I have found it much easier to use CGIDEV2. The only reason I would use an actual XML serializer would be if I needed to apply a schema to make sure all my enumerations were valid - for example. (an example of enumerations would be valid values for attributes from the business logic side of things). Aaron Bartell -----Original Message----- From: rpgnext-bounces@xxxxxxxxxxxx [mailto:rpgnext-bounces@xxxxxxxxxxxx] Sent: Friday, July 16, 2004 8:36 AM To: RPGNext Discussion and Information Subject: RE: [RPGNext] HTML/XML "Prototyping the XML" Does this simply mean you have a template file in the IFS that already exists and you are just adding content to it ? Is the CGIDEV2 API that you use to write it the wrtHtmlToStmf ? Doesn't the XML4PR have XML functions that are used to generate the tags for the root, elements, etc. that make it easier to generate XML ? Or, must one know exactly how to build the tags/content ? -----Original Message----- From: Bartell, Aaron L. (TC) [mailto:ALBartell@xxxxxxxxxxxxxx] Sent: Wednesday, July 14, 2004 3:18 PM To: RPGNext Discussion and Information Subject: RE: [RPGNext] HTML/XML I have adopted CGIDEV2 as my "xml serializer". The only time you need to use an actual XML Serializer like XML4PR400 is if you want to validate against a schema or make sure you are pumping out valid XML. Basically what I do is I prototype the XML in the IFS with CGIDEV2's "dynamic variables" and then have my RPG programs use the CGIDEV2 API's to fill out the XML, write it to and IFS file, and then use Scott Klements HTTP API to send it on its way. If you want to parse XML, that is where you will definitely want to use something like XML4PR400. I am working on my second XML parser, named XMLSAX, that I will be releasing to the community in the near future. I have a few people testing it out right now (Joel being one of them) to see if the feature set is rich enough. Go to http://mowyourlawn.com and sign up for the beta testing of XMLSAX if you so please. Aaron Bartell -----Original Message----- From: rpgnext-bounces@xxxxxxxxxxxx [mailto:rpgnext-bounces@xxxxxxxxxxxx] Sent: Wednesday, July 14, 2004 2:43 PM To: RPGNext Discussion and Information Subject: RE: [RPGNext] HTML/XML I have the need to begin generating XML files to pass data to a vendor. I understand that I will need to generate the XML content. The question is....how ? Is the XML4PR still available ? Can I find it on my iSeries ? Or, am I required to buy the XML Toolkit from IBM ? Can I find some examples of generating XML with RPG somewhere ? -----Original Message----- From: Joel Cochran [mailto:jrc@xxxxxxxxxx] Sent: Wednesday, July 14, 2004 10:39 AM To: RPGNext Discussion and Information Subject: Re: [RPGNext] HTML/XML You can use a serializer to write the XML, but I use the IFS APIs to simply create a xml file in the IFS. Joel On Wed, 2004-07-14 at 19:11, Joel Schibbelhute wrote: > That would probably be helpful. I'm not sure because I don't know > squat about writing xml from a 400 database. How do you do that > anyway? I haven't seen a pressing need to do this yet, but it will > probably pop up. > > Joel S. > ================================================================= > message: 1 > date: Tue, 13 Jul 2004 14:09:43 +0000 > from: Joel Cochran <jrc@xxxxxxxxxx> > subject: [RPGNext] HTTP/XML Output procedures > > I ran into a problem today... I'm creating an XML file from a 400 > database, and one of the fields has an ampersand embedded in the text. > When I try to open the XML file in a browser (Firefox .8), it bombs > because of the ampersand (it should be &). To address this, I'm > going to write a procedure that will find HTML/XML special characters > and replace them with the appropriate codes. There will also be a > co-procedure for un-converting these as well. > > My question is, will this be useful as part of the xRPG library? And > if so, are there any other similar procedures I could add to create a > new s! ervice program? I already have an "unescape" routine that I > use to convert incoming URL strings from their embedded codes (%20 = a > space, %2c = a comma, etc), so I could add that as well. Stuff like > that or anything dealing specifically with HTML/XML string processing > would be great. > > Joel > > > Joel Schibbelhute > Deep River Resources > 6225 Moccasin Pass Ct. > Colorado Springs, Co 80919 > 719.592.1412 > > > ______________________________________________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > > ______________________________________________________________________ > _______________________________________________ > This is the RPGNext Discussion and Information (RPGNext) mailing list > To post a message email: RPGNext@xxxxxxxxxxxx To subscribe, > unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpgnext > or email: RPGNext-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives at > http://archive.midrange.com/rpgnext. _______________________________________________ This is the RPGNext Discussion and Information (RPGNext) mailing list To post a message email: RPGNext@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpgnext or email: RPGNext-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpgnext. _______________________________________________ This is the RPGNext Discussion and Information (RPGNext) mailing list To post a message email: RPGNext@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpgnext or email: RPGNext-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpgnext. _______________________________________________ This is the RPGNext Discussion and Information (RPGNext) mailing list To post a message email: RPGNext@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpgnext or email: RPGNext-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpgnext. _______________________________________________ This is the RPGNext Discussion and Information (RPGNext) mailing list To post a message email: RPGNext@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpgnext or email: RPGNext-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpgnext.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.