Home » dom

dom

Local Data Storage 6 – Reading and Writing XML data files using Java

XML Data Files Working with Java and Files Tutorial Trail Serialize Objects to Files Serialize XML to Files In this post I will show you how to read and write data types in simple xml data files using XML DOM. DOM means Document Object Model. We are mainly concerned here with reading and writing some data of the same types we have been working with in previous articles. So i.e. xml data files <some document> <some element> <some data name=value/> <some data name="value"/> <some data> some text </some data> </some element> </some document> XML Documents XML document can be more complex with other parts to parse. In this, we have a document root which has as children which have children which have attributes which contain the data we want ...

Ajax and Websockets Explained

Ajax Ajax stands for Asynchronous Javascript and XML. I don’t have a lot to say about Ajax at this time except to say that it has been a very important server enhancement which makes communications between the web client and web server more efficient. Ajax is a hack on the server that allows the server to send the web client a piece of a web page instead of resending the entire web page. This piece is easily handled by Javascript using the DOM (Document Object Model). The DOM, of course, is the web page stored in a tree model in ram. Javascript may easily manipulate this DOM model on the client side and for example, update only the portion that is displaying data from a database table. I feel that Javascript and Ajax go well with Java technology. I think there is a book that I have t...

Javascript Language

Javascript Javascript is not Java In the beginning, it was called Live Script. Its name was changed to Javascript or Microsoft JScript as a marketing ploy. The language is based on the EMCA script standard and specifications. Basically, Microsoft and Netscape invented Javascript. Javascript is similar in syntax to C or Java. Many Java concepts and standards are also part of Javascript. However, Javascript is not Java. Inline Javascript example. <html> <head> <title>JavaScript Hello World</title> <script> alert('Hello, World!); </script> </head> <body> Main body text goes here. </body> </html>   DHTML Now some years back there was this concept of DHTML.  DHTML was merely a combination of HTML, CSS, and Javascript along with th...

HTML HyperText Markup Language

HTML Explained HyperText Markup Language When we say HTML, the first thought that comes to our heads is “what does HTML stand for?”. So let’s start at the beginning. HTML stands for HyperText Markup Language. In fact, it’s the markup language which is used to create web pages and applications which you view every day on the internet. Its pretty much what began the internet as most people know it. HTML facilitates a web designer to specify what content is needed to be displayed on a web page to be accessed later by us using a web browser. The current standard version of HTML is HTML 5.0, though HTML 4 is also still in wide use. Sell also Version 5.0 Documentation, Version 4 Documentation, Cascading Style Sheets But, before we go into more details about HTML, let̵...