*
The moose likes XML and Related Technologies and the fly likes How to create two row in xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to create two row in xml file" Watch "How to create two row in xml file" New topic
Author

How to create two row in xml file

tamil Aarasu
Greenhorn

Joined: Apr 06, 2011
Posts: 5
Hi Friend

I have an xml file which has Only one row in we insert into a table if i want two or more row wat i have to do in this code

<?xml version="1.0" encoding="UTF-8" ?>
<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.example.org xsd/customer.xsd"
xmlns="http://www.example.org">
<first_name>suresh</first_name>
<last_name>babu</last_name>
<quantity>100</quantity>
<amount>5000</amount>
</employee>

Your help ll be appreciable
Thanks
Aarasu
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
Maybe something like this?



Ping & DNS - my free Android networking tools app
tamil Aarasu
Greenhorn

Joined: Apr 06, 2011
Posts: 5
Thanks

Ulf Dittmer
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to create two row in xml file
 
Similar Threads
SAX parsing question
two queries combined together into a single one
Problem in composite key as foreign key mapping w/ hibernate v3.2.6 and jdk-6
SQL query
XML data to Oracle database