hi, Please tell me how we can using java to read and write to XML file for a web application : )
-
My exercise is using Eclipse to write a web application, and requirement is using XML to write database. Please show me how, thanks so much! : )
-
My exercise is using Eclipse to write a web application, and requirement is using XML to write database. Please show me how, thanks so much! : )
Sorry, I cannot answer your question since it is so broad. Please, use the following link to start your educational journey: http://www.google.com/Top/Computers/Programming/Languages/Java/XML/[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
Sorry, I cannot answer your question since it is so broad. Please, use the following link to start your educational journey: http://www.google.com/Top/Computers/Programming/Languages/Java/XML/[^]
"We make a living by what we get, we make a life by what we give." --Winston Churchill
hihi i'm a newbe in Java. If u don't mind, please show me basic code to create an XML file (i understood XML structure), how to retrieve data from this file and write data to it. I need to develop my application in "Eclipse.exe". Follow your instruction i read on "http://developerlife.com/xmljavatutorial1/default.htm" and see this coding:
import com.sun.xml.tree.*; import org.w3c.dom.*;
You must have the a String URL of the XML document before you can instantiate a DOM object from it. Assume that an XML file called AddressBook.xml is at the following URL: http://beanfactory.com/xml/AddressBook.xml. Here is the code to create a DOM object from this URL:try { String url = "http://beanfactory.com/xml/AddressBook.xml"; Document doc = XmlDocumentBuilder.createXmlDocument(url); } catch(Exception e){}
But i can not download Sun's parser or IBM's parser. Can u tell me another way : ) -- modified at 1:55 Tuesday 19th December, 2006 -
hihi i'm a newbe in Java. If u don't mind, please show me basic code to create an XML file (i understood XML structure), how to retrieve data from this file and write data to it. I need to develop my application in "Eclipse.exe". Follow your instruction i read on "http://developerlife.com/xmljavatutorial1/default.htm" and see this coding:
import com.sun.xml.tree.*; import org.w3c.dom.*;
You must have the a String URL of the XML document before you can instantiate a DOM object from it. Assume that an XML file called AddressBook.xml is at the following URL: http://beanfactory.com/xml/AddressBook.xml. Here is the code to create a DOM object from this URL:try { String url = "http://beanfactory.com/xml/AddressBook.xml"; Document doc = XmlDocumentBuilder.createXmlDocument(url); } catch(Exception e){}
But i can not download Sun's parser or IBM's parser. Can u tell me another way : ) -- modified at 1:55 Tuesday 19th December, 2006These parsers might be available to you: http://xerces.apache.org/[^] or http://www.jclark.com/xml/[^] Also, I am really a C++ programmer with a little Java programming knowledge. So, I cannot really give a good example using Eclipse.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
-
These parsers might be available to you: http://xerces.apache.org/[^] or http://www.jclark.com/xml/[^] Also, I am really a C++ programmer with a little Java programming knowledge. So, I cannot really give a good example using Eclipse.
"We make a living by what we get, we make a life by what we give." --Winston Churchill
hihi me too. I use C as my main language, but my new project using Java and Japanese. So i must try so much :) Arigato :)