Click to See Complete Forum and Search --> : hw we make database in xml and then connect this through java to pos terminal using s


hemant
05-20-2006, 05:31 AM
dear members
plz help me in xml
bcoz i m very new to this

make an database in xml then
connect this through java to pos terminal using serial port
and i dont know about connectivity through serial port in java
and hw to upload and download the database to pos terminal(an biling machine)
and i also have problem in database connectivity coding for xml with java



so plz see title
and send reply

hemant kumar srivastava

"togetherness is biggest power of the world"

alehambre
06-02-2006, 04:59 PM
I can tell you where to start, but you've got a lot of research to do. See AJAX on google. Also see DOM (Document Object Model). http://www.w3schools.com/

Here's a code I use to import an XML into HTML using javascript(place it in the head section of your HTML):

<html>
<head>
<script language="JavaScript" type="text/JavaScript">
<!--

//Load the XML to buffer
{ var xmldoc=new ActiveXObject("MSXML2.DOMDocument.3.0");
xmldoc.async=false;
xmldoc.load("YOURFILE.xml");
xmldoc.setProperty("SelectionLanguage", "XPath");}
</head>
</html>

You then use javascript to call in elements/objects from the DOM, using Xpath.

See:
http://www.w3schools.com/htmldom/default.asp

I'm working to do the same thing.