FW: More Inputs for XML
Martin Cooper <[email protected]> Wed, 22 Jan 2003 23:37:43 -0800
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
It seems I have to be more explicit... "I suggest you supply more detail" += "to the list, not to me personally" -- Martin Cooper -----Original Message----- From: sushil [mailto:[email protected]] Sent: Thursday, January 23, 2003 12:46 PM To: [email protected] Subject: More Inputs for XML Hi Martin, I have a XML File .........pls. find the attachment XML file as book.xml. In which I have one element DOB(Date of Birth) and this has a date value in a format "yyyy-mm-dd" and i want to convert into "dd/mm/yyyy" for the same element. so that i can get new XML file (book2.xml) with different Date Format consist rest of element as it is. For this same process I want to know little bit Code in java. TIA Sushil
book.xml
(text/xml, 275 B)
<?xml version="1.0"?> <book> <person> <first>Kiran</first> <last>Pai</last> <DOB>1988-07-22</DOB> </person> <person> <first>Bill</first> <last>Gates</last> <DOB>1980-05-16</DOB> </person> <person> <first>Steve</first> <last>Jobs</last> <DOB>1977-03-14</DOB> </person> </book>
book2.xml
(text/xml, 275 B)
<?xml version="1.0"?> <book> <person> <first>Kiran</first> <last>Pai</last> <DOB>22/07/1988</DOB> </person> <person> <first>Bill</first> <last>Gates</last> <DOB>16/05/1980</DOB> </person> <person> <first>Steve</first> <last>Jobs</last> <DOB>14/03/1977</DOB> </person> </book>