HomeDigital EditionSys-Con RadioSearch Java Cd
Advanced Java AWT Book Reviews/Excerpts Client Server Corba Editorials Embedded Java Enterprise Java IDE's Industry Watch Integration Interviews Java Applet Java & Databases Java & Web Services Java Fundamentals Java Native Interface Java Servlets Java Beans J2ME Libraries .NET Object Orientation Observations/IMHO Product Reviews Scalability & Performance Security Server Side Source Code Straight Talking Swing Threads Using Java with others Wireless XML
 

"Consolidating Legacy Data "
Vol. 6, Issue 1, p. 48

	

Listing 1

#define CUSTNO_LEN 8
#define FNAME_LEN 24
#define LNAME_LEN 24
#define ADDR_LEN  24
#define CITY_LEN  24
#define STATE_LEN 2
#define ZIP_LEN  10

struct C_CUSTOMER {
	char custno[CUSTNO_LEN];
	char fname[FNAME_LEN];
	char lname[LNAME_LEN];
	char addr[ADDR_LEN];
	char city[CITY_LEN];
	char state[STATE_LEN];
	char zip[ZIP_LEN];
	double balancedue;
	int datedue_month;
	int datedue_day;
	int datedue_year;
}

Listing 2

<xml_customer>
	<CustomerNumber>123456768</CustomerNumber>
	<NewViewableInfo>...</NewViewableInfo>
	<NewPrivateInfo>...</NewPrivateInfo>
</xml_customer>

Listing 3

<customer_view>
	<CustomerNumber>123456768</CustomerNumber>
	<FirstName>James</FirstName>
	<LastName>Morrison</LastName>
	<Address>1234 Main St.</Address>
	<City>Anytown</City>
	<State>US</State>
	<PostalCode>12345-6789</PostalCode>
	<PersonalInfo>....</PersonalInfo>
</customer_view>


  
 
 

All Rights Reserved
Copyright ©  2004 SYS-CON Media, Inc.
  E-mail: [email protected]

Java and Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. SYS-CON Publications, Inc. is independent of Sun Microsystems, Inc.