iFocus.Life News News - Breaking News & Top Stories - Latest World, US & Local News,Get the latest news, exclusives, sport, celebrities, showbiz, politics, business and lifestyle from The iFocus.Life,

Using XML with DOM, Good and bad points

101 62
XML is a meta markup language that has its own set of tags, considering richly arranged paperwork to be transmitted and presented over the web. Before this web developers had the use of HTML and SGML to display content on the internet, however both SGML and HTML had a number of restrictions which made them unsuitable and actually confined with regards to quite a few of the then promising technologies and needs of the web, for instance showing rich and also dynamic data.

XML is much more appropriate due to the fact its a lot more flexible than HTML or SGML, therefore the X, which is short for Extensible, hence XML is used for displaying rich data since it's more suited than its closest alternatives.

In actuality XML features a amount of advantages for web designers and developers alike, these positive aspects incorporate firstly and most apparent of all, content owners can create their own custom documents because of the flexibility of being able to build custom tags. XML tags do not ever carry semantic meaning so programmers can make their own tags. This isn't feasible with XML or SGML.

Secondly, the other key advantage, as stated already, is the fact content which includes hyperlinks can be displayed in a much richer format a result of the innovative features and capabilities of XML as compared to HTML.

XML even offers much more advanced facilities in the manner content is presented in browsers not forgetting excellent progress in functionality especially with regards to dynamic content.

The reason for this boils down to compression powers, XML is arranged really well which make it very easy to compress, this amount of order and structure is just not present in ordinary text and so XML offers a swifter browsing experience.

Along with the good points stated earlier, its also proper to mention many of the weaknesses of XML, which although it isn't considerable, its important to mention for sake of completeness.

The obvious and well known of such weaknesses is the fact XML might be rather sizeable and verbose from a programming perspective, which explains why in the area of web services JSON has become incredibly well-liked to the detriment of XML.

Even so this need not be a dilemma, it all depends on exactly what you intend to do with XML and ways in which you intend to make use of it. The other point to observe is that there is nonetheless plenty of disparity in relation to specifications and interoperability etc. As a result of various technologies as well as the rapidly increasing nature of XML there are still gaps between XML related technologies for example XSL and XSLT.

With regards to using DOM. Microsoft have given an MSXML parser which lets you load and parse your XML files, this takes a lot of the pain out of working with XML. The parser functions by exposing your XML file as a DOM (Document Object Model), this enables you to gather details about the xml file, to control it also to navigate through the file, elements, attributes etc.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time
You might also like on "Technology"

Leave A Reply

Your email address will not be published.