Results 1 to 6 of 6

Thread: How to use DOM in XML

  1. #1
    Join Date
    Feb 2010
    Posts
    148

    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    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.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    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.

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    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 .

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,051,076.66362 seconds with 15 queries