Hi Steve,

Welcome aboard the XML in U2 bus! I have spent the last 6 months learning
XML in U2. My previous programming background was in Lotus Notes and JAVA so
it has been an interesting transition. Here are some of the tips I have for
you for resources.

1. Download the U2 manuals. The main one you want for importing and
exporting XML in U2 is UniBasic Extensions.
The manuals for U2 are located at:
http://www-306.ibm.com/software/data/u2/pubs/library/
The UniBasic Extensions v7.1 manual .pdf is located at:
http://publibfi.boulder.ibm.com/epubs/pdf/29916610.pdf. Chapters 6 - 10
will
deal with XML through UniBasic, SOAP, and DOM. 
There are some sections of the documentation that is lacking complete
documentation and examples, in my opinion, that will require you to
experiment to get it to work. For example, pg. 7-13 & 7-14 deal with Opening
the XML data. However, they did not include the statement XMLError(errmsg)
to debug the code when XML.ERROR = -1. This was very helpful to notify me
which areas of the code OpenXMLData was having problems.
Also, OpenXMLData is used on the same pages. It should be OPENXMLDATA. You
can use OpenXMLData as written in the .pdf example but you will have to
compile the code using -I. I had to search the List Archives for figure that
one out.

2. Look at the article LeRoy Dreyfuss (uber-smart guy!) wrote on
Understanding IBM U2 XML Features. This is a great read on how to setup the
.map and .ext files as well as using DB.TOXML and XML.TODB commands in
programs.
http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0601dreyfus
s/

3. Search the list archive for previous problems. Some people have probably
already experienced a problem you are having when getting your code to work.
This has been helpful to me on a few occasions. 
You can search the archives from here: http://www.indexinfocus.com/

4. Look at the old forum at U2UG.org. There is a section out there for XML.
This is an archive of older information before this list came about to
replace it. I found a few tips out there that helped when I was trying to
find examples of extraction files.

I hope this helps you as a starting point from a newbie to the U2 world of
XML.
Donald Bridges
Sunset Programming, Inc. 

-----Original Message-----
From: Steve Long [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 25, 2006 10:13 AM
To: [email protected]
Subject: [U2] Unidata XML

Hi All -

Does anyone know of a good resource for learning how the U2 XML works?  Is
it reliable?  I have a new project coming up and this functionality is
needed, but I haven't found anything real complete on it.

Thanks,

Steve
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to