Blog Archive

Generate XML using RPGLE with help of C language API’ s Part 5

Click here to read the Tutorial from the beginning. XML data output for the Sample RPGLE program
Here is what you get after you run the RPGLE program to generate the XML
<?xml version="1.0" encoding="UTF-8"?>
<Orders>
<Order Type="Sales">
<OrderID>101</OrderID>
<CustNumber>ABC</CustNumber>
<OrderDate>01-05-2011</OrderDate>
<CustPONumber>TEST PO - 123</CustPONumber>
<OrderTotal>99.99</OrderTotal>
<OrderLine>
<OrderlineID>1</OrderlineID>
<ItemID>MCP-X2</ItemID>
<ItemDescription>Cuisinart MultiClad Pro</ItemDescription>
<Quantity>5</Quantity>
<Price>10.00</Price>
</OrderLine>
<OrderLine>
<OrderlineID>2</OrderlineID>
<ItemID>DC25-X</ItemID>
<ItemDescription>Dyson Vacuum Cleaner</ItemDescription>
<Quantity>1</Quantity>
<Price>49.99</Price>
</OrderLine>
</Order>
<Order Type="Sales">
<OrderID>102</OrderID>
<CustNumber>ABC</CustNumber>
<OrderDate>03-05-2011</OrderDate>
<CustPONumber>TEST PO - 126</CustPONumber>
<OrderTotal>1212.12</OrderTotal>
<OrderLine>
<OrderlineID>1</OrderlineID>
<ItemID>MMM-X123</ItemID>
<ItemDescription>Houdini Hand Blown Crystal</ItemDescription>
<Quantity>20</Quantity>
<Price>20.00</Price>
</OrderLine>
<OrderLine>
<OrderlineID>2</OrderlineID>
<ItemID>LG123456</ItemID>
<ItemDescription>French Door Refrigerator</ItemDescription>
<Quantity>1</Quantity>
<Price>800.12</Price>
</OrderLine>
</Order>
</Orders>

Finsihed ! Thanks for Reading ...

Recommended Reading


5 comments :

  1. Tested the code - wouldn't compile something missing?

    ReplyDelete
  2. What is the Error? Need Copy of the Spool for your XML generation rpgle program. Did you include the copy source IFSIO_H ?

    ReplyDelete
  3. I did have the IFSIO_H. Using RDp, Verify fails, Compile did eventually work. The issue was with the binding directory not being found for some reason, no spelling issues but after I manually keyed them it compiled. Must have been user error. I wanted to test this - and very nice - well laid out example. Good job. One that I will refer others to. Thank you for sharing!!

    ReplyDelete
  4. [url=http://www.longchampoutletstore.org/][b]Longchamp Store[/b][/url]

    [url=http://www.nfljerseys.us/][b]NFL Jerseys[/b][/url]

    [url=http://www.yeezyboost350.us.com/][b]Yeezy Boost 350[/b][/url]

    [url=http://www.jordan4.us/][b]Jordan 4[/b][/url]

    [url=http://www.nikeoutletsstore.com/][b]Nike Outlets[/b][/url]

    [url=http://www.longchampbags.us.com/][b]Longchamp Handbags[/b][/url]

    [url=http://www.airmax2016.us.com/][b]Nike Air Max 2016[/b][/url]

    [url=http://www.adidas-uk.org.uk/][b]Adidas UK[/b][/url]

    [url=http://www.yeezys.org/][b]Yeezys[/b][/url]

    [url=http://www.underarmouroutlet.us.com/][b]Under Armour Outlet[/b][/url]

    [url=http://www.timberlanduk.org.uk/][b]Timberland UK[/b][/url]

    [url=http://www.jordan12.us/][b]Jordan 12[/b][/url]

    [url=http://www.poloralphlaurenoutlets.us.com/][b]Ralph Lauren Outlet[/b][/url]

    [url=http://www.yeezy-shoes.us.com/][b]Yeezys Shoes[/b][/url]

    [url=http://www.nikeoutlet.org.uk/][b]Nike Outlet[/b][/url]

    [url=http://www.nikehuarache.us/][b]Nike Air Huarache[/b][/url]

    [url=http://www.kedsshoesforwomen.com/][b]Keds Shoes[/b][/url]

    [url=http://www.nikerosherun.us.com/][b]Nike Roshe Run[/b][/url]

    [url=http://www.yeezy.com.co/][b]Yeezy[/b][/url]

    [url=http://www.nikeairmax.us/][b]Air Max[/b][/url]

    [url=http://www.oakleyoutlet-sale.us/][b]Oakley Outlet[/b][/url]

    [url=http://www.adidasnmd.us.com/][b]Adidas NMD R1[/b][/url]

    [url=http://www.cheap--jordanshoes.us.com/][b]Jordan Shoes[/b][/url]

    [url=http://www.outlettoms.us/][b]Toms Shoes Outlet Online[/b][/url]

    [url=http://www.ultraboostuncaged.us/][b]Adidas Ultra Boost Uncaged[/b][/url]
    [url=http://www.raybansoutlet.us/][b]Ray Ban Outlet[/b][/url]
    [url=http://www.mlb-jerseys.us/][b]MLB Jerseys[/b][/url]

    [url=http://www.uggboots-outlets.com/][b]Ugg Boots[/b][/url]

    [url=http://www.katespadeoutlets.us/][b]Kate Spade Outlet[/b][/url]

    [url=http://www.uggbootsclearanceoutlet.us/][b]Ugg Clearance Sale Outlet[/b][/url]

    [url=http://www.uggs-outletboots.us/][b]Ugg Outlet[/b][/url]

    [url=http://www.timberland-outlet.us/][b]Timberland Outlet[/b][/url]

    [url=http://www.ray-banoutlets.us/][b]Ray Ban Outlet[/b][/url]

    [url=http://www.rayban-sunglasses.ca/][b]Ray Ban Sunglasses[/b][/url]

    [url=http://www.adidas-nmd.org.uk/][b]Adidas NMD[/b][/url]

    [url=http://www.katespadeoutlet.us.org/][b]Kate Spade Outlet[/b][/url]

    [url=http://www.ralphlaurens.org.uk/][b]Ralph Laurens[/b][/url]

    ReplyDelete