Why XML? XML is structured XML is platform independent XML is an open standard XML is language independent DOM and SAX are open XML is web enabled XML is totally extensible XML enables interoperability …
Page Layout HeaderLogin Category Sub Category TagsTag Details
Why CSS/tableless Layout? More beautiful and accessible Layouts are much cleaner in their structure and presentation. Provides a greater support weather you work on a fixed width or liquid design layout. Develop complicated layouts without damaging the structure of the document. More flexible and efficient CSS pages are supported by most browsers. CSS allows extreme flexibility in positioning and styling the visual elements of a layout. More functional and supportive Present yourself proudly to search engines. Write it once and use anywhere for everyone. …
Login Login required to add / edit / delete tags. Using JSP Session - to keep track of info about the user. Using Cookie to “Remember Me”. Change password. Logout. session.setAttribute("username", curUserID); session.getAttribute("username"); Cookie nameCookie = new Cookie("USERNAME", userID); nameCookie.setMaxAge(365 * 24 * 60 * 60); Cookie passwordCookie = new Cookie("PASSWORD", pwd); passwordCookie.setMaxAge(365 * 24 * 60 * 60); session.removeAttribute("username");
Search Search by: Full tag name Keyword/s or part of tag names Starting letters of tag names Autocomplete – jQuery plugin Databean name Java code Search results are listed in Tags column.
Parse XML Using Document Object Model (DOM) to convert XML to server-side objects and extract the object properties. DOM is a tree-based parsing technique that builds up an entire parse tree in memory. It allows complete, dynamic access to a whole XML document. DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document doc = docBuilder.parse("tags.xml");
Process XML Data Add tag appendChild(Node newChild); insertBefore(Node newChild, Node refChild); Edit tag setNodeValue(String nodeValue); Delete tag removeChild(Node oldChild);