December 03, 2004
What is it: Tis an app that randomly creates (USA) full names and addresses from a set of XML files...using a XML config file, and outputs an XML file that can be imported into a database, to build test personnel data tables.

After of months writing tons of D code toward bring this project forward (only to use two modules...so far), I'm releasing a commandline version that I've tested under Windows, but it should also work under Linux since it uses the Phobos runtime library for file io.

Get the downloadable zipfiles here: http://spottedtiger.tripod.com/D_Language/D_Randomly_Gen_Data_XP.html

Sample program run:
-------------------
C:\dmd\randomdata>..\bin\dmd randomdata.d toyxml.d stringplus.d C:\dmd\bin\..\..\dm\bin\link.exe randomdata+toyxml+stringplus,,,user32+kernel32/noi;

C:\dmd\randomdata>randomdata
Random personnel names and addresses generator v0.2
by David L. 'SpottedTiger' Davis - 2004

Shawna Gayle Alexander
714 Runkle Light
Cullman, AL 35056
(256) 615-5616

Donn David Lopez
6849 Glenflora Causeway
Toa Alta, PR 00953
(787) 977-9189

Miranda Chantal Phillips
9659 Modest Path
Indianapolis, IN 46208
(317) 633-6471

Elias Mackenzie Wilson
5360 Connolly Wells
Vernon Rockville, CT 06066
(860) 857-4090

Mattie Gail Rivera
2215 Sandy Bend
Berry, AL 35546
(205) 433-6192

Created 5 records.
Wrote "personnel.xml" to "C:\dmd\randomdata"
done.

================
Sample XML output used to import with:
--------------------------------------
# <?xml version="1.0" encoding="UTF-8"?>
# <personnel count="10">
#   <entry pos="1">
#     <firstname>Shawna</firstname>
#     <middlename>Gayle</middlename>
#     <lastname>Alexander</lastname>
#     <gender>F</gender>
#     <streetnum>714</streetnum>
#     <streetname>Runkle</streetname>
#     <streetabbr>Light</streetabbr>
#     <city>Cullman</city>
#     <state>AL</state>
#     <zipcode>35056</zipcode>
#     <homephonenum1>(256) 615-5616</homephonenum1>
#   </entry>
#   <entry pos="2">
#     <firstname>Donn</firstname>
#     <middlename>David</middlename>
#     <lastname>Lopez</lastname>
#     <gender>M</gender>
#     <streetnum>6849</streetnum>
#     <streetname>Glenflora</streetname>
#     <streetabbr>Causeway</streetabbr>
#     <city>Toa Alta</city>
#     <state>PR</state>
#     <zipcode>00953</zipcode>
#     <homephonenum1>(787) 977-9189</homephonenum1>
#   </entry>
#   <entry pos="3">
#     <firstname>Miranda</firstname>
#     <middlename>Chantal</middlename>
#     <lastname>Phillips</lastname>
#     <gender>F</gender>
#     <streetnum>9659</streetnum>
#     <streetname>Modest</streetname>
#     <streetabbr>Path</streetabbr>
#     <city>Indianapolis</city>
#     <state>IN</state>
#     <zipcode>46208</zipcode>
#     <homephonenum1>(317) 633-6471</homephonenum1>
#   </entry>
#   <entry pos="4">
#     <firstname>Elias</firstname>
#     <middlename>Mackenzie</middlename>
#     <lastname>Wilson</lastname>
#     <gender>M</gender>
#     <streetnum>5360</streetnum>
#     <streetname>Connolly</streetname>
#     <streetabbr>Wells</streetabbr>
#     <city>Vernon Rockville</city>
#     <state>CT</state>
#     <zipcode>06066</zipcode>
#     <homephonenum1>(860) 857-4090</homephonenum1>
#   </entry>
#   <entry pos="5">
#     <firstname>Mattie</firstname>
#     <middlename>Gail</middlename>
#     <lastname>Rivera</lastname>
#     <gender>F</gender>
#     <streetnum>2215</streetnum>
#     <streetname>Sandy</streetname>
#     <streetabbr>Bend</streetabbr>
#     <city>Berry</city>
#     <state>AL</state>
#     <zipcode>35546</zipcode>
#     <homephonenum1>(205) 433-6192</homephonenum1>
#   </entry>
# </personnel>

David L.


-------------------------------------------------------------------
"Dare to reach for the Stars...Dare to Dream, Build, and Achieve!"