Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa XML how to create an xml file in following clear format
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


akraam
how to create an xml file in following clear format
1 Answer(s)      a year and 6 months ago
Posted in : XML


anyone please help me out to create this file,,.

<Tasks> <Taskid>1 <Taskname>Coding <Project>CeMIC <Date>21 February <Taskid>2 <Taskname>Testing <Project>Blackberry <Date>2 march
<Taskid>3 <Taskname>Integration <Project>Assinment JSP <Date>23 march
<Taskid>4 <Taskname>Implementation <Project>CMIC <Date>7 april <Taskid>5 <Taskname>Maintainance <Project>CMIC <Date>7 april


Advertisement
View Answers

June 6, 2013 at 6:04 PM


hi friend,

The first line of an xml document contains the XML declaration statement i.e.

<?xml version= "1.0"?>

Then define the root element and then you can define its child and sub chile element.

In your case the xml document will be as follows :

<?xml version= "1.0"?>
<Tasks>
 <Taskid>1</Taskid>
  <Taskname>Coding</Taskname>
  <Project>CeMIC</Project>
  <Date>21 February</Date> 
 <Taskid>2</Taskid>
  <Taskname>Testing</Taskname>
   <Project>Blackberry</Project>
    <Date>2 march</Date>
 <Taskid>3</Taskid>
  <Taskname>Integration</Taskname>
   <Project>Assinment JSP</Project>
    <Date>23 march</Date>
 <Taskid>4</Taskid>
  <Taskname>Implementation</Taskname>
   <Project>CMIC</Project>
    <Date>7 april</Date>
 <Taskid>5</Taskid>
  <Taskname>Maintainance</Taskname>
   <Project>CMIC</Project>
   <Date>7 april</Date>
</Tasks>


Related Tutorials/Questions & Answers:
how to create an xml file in following clear format
how to create an xml file in following clear format  anyone please help me out to create this file,,. <Tasks> <Taskid>1 <Taskname>Coding <Project>CeMIC <Date>
How to create XML file - XML
How to create XML file  Creating a XML file, need an example. Thanks!!  To create XML file you need plain text editor like note pad. After... language has many API's to create xml file from program.Here is the code example
Advertisements
How to convert excel file int xml format in java
How to convert excel file int xml format in java  How to read excel file(xls) which is stored in any directory(D://) and convert it into xml format in java and place in any directory(E://).Can any body provide the code
How to create one xml file from existing xml file's body?
How to create one xml file from existing xml file's body?  Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm
how to append data to XML file in proper format using JSP
how to append data to XML file in proper format using JSP  hello i... not getting XML file in proper format as XML rules.lease help me to get XML file... data entered bt more users in proper XML format. I have also tried following
How create csv format in jsf ?
How create csv format in jsf ?  Dear Friends , Good morning to all of you? I have a problem to create .CSV format in jsf. Actully I have... the pdf file now I want to create .csv format using this data ? Please Help me
How to access the following tag from xml to jsp
How to access the following tag from xml to jsp  How can i get the title where cat="1" and "My Title" from XML File?   Please visit... will provide you an example that will read an xml file and display the data
How to prepare XML file?
How to prepare XML file?  Hi, I want to prepare XML File, can you tell me how should I do it? Thanks.   Hello, Following links can help you create an XML file.. Create XML File using Servlet How to generate
Java Swing Create XML file
Java Swing Create XML file In this tutorial, you will learn how to create XML... and fetch all the data from textfields and create an xml file with proper... swing components and display it in xml file. We have created textfields
Print the following format
Print the following format  how to print the following format given string "00401121" in java 0-** 1-* 2-* 3- 4
Produces XML file but format not correct for storing data using JSP and XML
Produces XML file but format not correct for storing data using JSP... XML file also(wrong format),shows result in JSP page but server shows... entered by user in XML file ,It stores data entered in XML file
Create XML File using Servlet
Create XML File using Servlet       In this section, you will learn how to create xml... XML file with its version and encoding and display a message 'Xml File Created
how to create a xml page
how to create a xml page  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <
how to read this xml file - XML
how to read this xml file  i want to read this xml file using java... read i have tried lot more , but i am not able to read this xml file...[])throws Exception { File f=new File("C:/data.xml"); DocumentBuilderFactory
print array in following format
print array in following format  i want print two array in following format first array= 1,2,3,4,5,6,7,8,9 second array=11,12,13,14,15,16,17,18,19 i...; Here is a code that displays the array values in the following pattern: 1 2
How to create XML from Swings
How to create XML from Swings  How to create XML using Swings. I have... components and display it in xml file. import java.io.*; import java.util.*; import...(); createXmlFile(doc,value1,value2,value3,value4); System.out.println("Xml File Created
What is XML?
and create well formatted XML document. What is XML Document? Some facts about XML: XML file is simple text file with .xml extension. XML file is used... booking application may send the data in xml format to the credit card processing
How to write to xml file in Java?
How to write to xml file in Java?  Hi Friends, Can anyone help me how to write in xml file in Java programming. Please fill free to give example... offers the opportunity to create XML file. For more details visit link text
how to create ipa file
how to create ipa file  Hi, How to .ipa file? Thanks   Hi, Please check the thread Resources have been modified iPhone. Thanks
How to convert XML file to database ?
How to convert XML file to database ?  How to convert XML file to database
How to format text file? - Java Beginners
How to format text file?  I want the answer for following Query ***(Java code) How to open,read and format text file(notepad) or MS-word... String getContents(File aFile) { StringBuilder contents = new StringBuilder
how to convert .xml file to csv file
how to convert .xml file to csv file  how to convert .xml file to csv file
How to create a jar file
How to create a jar file  Hello!!!! I have a project which has... a single executable jar of it... so pls tell me how it will b possible for me???   The given code creates a jar file using java. import java.io.*; import
How to add a file in GZIP file format in Java programme.
How to add a file in GZIP file format in Java programme.  Hi please help me. How to add a file GZIP File format in Java program. If example... that will help you related to how to add the file in Gzip file format
how to seach a keyword in a xml file - XML
how to seach a keyword in a xml file  i have a xml file. i wanted to read and store all the tag values. i have a html form in which when i enter some keyword say "a" then it has to display the tag values starting with a letter
java program to create xml file with append data in well-formed
java program to create xml file with append data in well-formed   Sorry sir your given xml append data program is not well-formed. I'll make you more clear what I want. If this is my xml file Tom Cruise 45 Now when I append
database data in xml format
database data in xml format  HI, i want to display the database data in the xml format(not as xml file ) on the console using DOM. help will be appreciated. THANKS K.K
how to convert text file to xml file in java. - XML
how to convert text file to xml file in java.  Hi all, I m having some problem. Problem is I want to convert a text file which is having the no of record(i.e no of different line of information)to a xml file through java
how to modify content of XML file
how to modify content of XML file  hi, I want to modify content of a xml file.There are two tags of similar name say <ContentName>C:\Myinfo... to xml file to replace "XYZ".Every time with the content of text box the file should
how to create xml schema from xml doc using java
how to create xml schema from xml doc using java  i want to create xml schema from xml document programatically using java... am using Netbeans IDE... need to create the xml schema for that document and send both xml doc ans schema
Java get XML File
the XML file. For this, you need to create a XML file. Here is the employee.xml file: <?xml version="1.0"?> <company>... Java get XML File     
Advertisements
 

 

 

DMCA.com