Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



How to use DOM in XML

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 23-02-2010
Member
 
Join Date: Feb 2010
Posts: 143
How to use DOM in XML

Hi all,

Document Object Model (DOM) is used to manipulate XML and HTML data, one of the most commonly used tools, but its potential is rarely fully tapped. Through the use of the advantages of DOM and make it more easy to use, i will receive an application XML applications including dynamic Web applications a powerful tool. Can anybody tell me how to use DOM in XML. Please help.
Reply With Quote
  #2  
Old 23-02-2010
Modifier's Avatar
Member
 
Join Date: Jan 2008
Posts: 1,502
Re: How to use DOM in XML

DOM to deal with XML and HTML, one of the standard API. Because of its large footprint, slow, and tedious, so often people are accusations. Nevertheless, for many applications, it is still the best choice, but other than XML, the main API - SAX is no doubt be much simpler. DOM is gradually appear in a number of tools, such as Web browsers, SVG browser, OpenOffice, and so on. Check and reply.
Reply With Quote
  #3  
Old 23-02-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: How to use DOM in XML

DOM good, because it is a standard, and has been widely realized, but also built into other standards. As a standard, its data processing and programming language-independent. This may be advantages and disadvantages might be, but at least the way we handle the data has become the same. DOM now not only built-in Web browser, but also of many XML-based specification part of it. Since it has become a part of your tools, and perhaps you occasionally use it, I think we should make full use of it gives us the function. Best of luck.
Reply With Quote
  #4  
Old 23-02-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
How to use DOM in XML

If you have just access to DOM programming, it is necessary to point out that, although you can make multiple pointer to a node, but the node will only exist in the DOM tree in a location. Therefore, if you want to insert it into the tree, no need to first remove it from the tree, because it will automatically be removed. When the re-sort the node, this mechanism is very convenient, just insert the node to a new location. Best of luck.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #5  
Old 23-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Re: How to use DOM in XML

DOM has its own limitations and shortcomings, but it also has many advantages: it is embedded in many applications; regardless of the use of Java technology, Python, or JavaScript, it is all in the same way work; it is very easy to use SAX; the use of the above-mentioned template, it is both simple to use and robust. More and more applications start to support the DOM, including the Mozilla-based applications, OpenOffice, and Blast Radius's XMetaL. Needs of a growing number of standardized DOM, and it deserves to be expanded for example, SVG, so DOM always on your side. Has been widely deployed use of this tool is definitely a wise move you. check and reply.
Reply With Quote
  #6  
Old 23-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
How to use DOM in XML

DOM is not a very safe tool - particularly the use of DOM API to create can not be the XML serialization of the tree. Never in the same program DOM1 mix of non-API and the DOM2 namespace namespace-aware API (for example, createElement, and createElementNS). If you use the name space, please try to place the root element of all namespace declarations and do not cover the namespace prefix, otherwise the situation would be very confusing. Generally speaking, as long as usual, they will not allow you to trigger the critical situation of trouble. Thanks .
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search



All times are GMT +5.5. The time now is 05:15 AM.