eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 

Your Online Guide » »

[P66]Parsing Xml Using Dom
by Adam Sturo, Ada
XML means Extensible Markup Language. We can say that XML isn't a language but it is system for defining other languages. XML plays there role beautiful on the Internet. XML also have a life outside of the Internet, just like for people who produce documents intended to appear across multiple media and also helpful for some large-scale document publishers who have been using SGML (Standard Generalized Markup Language).

XML one of intelligence feature for the Web is how it interacts with the DOM (Document Object Model), which is an interface which defines the method for accessing data in a document. DOM, programmers can script dynamic content in a predefine way. We can say that it uses to cause a specific part of content in a browser document tree to act as in a certain way. XML will also help to resolve the problem to specifying where to display some result, and Web builders will be able to specify the structure of the document. There are some XML-based languages is already in use--Microsoft's Channel Definition Format (CDF) and more are on the way, including the Resource Definition Format (RDF) and the Open Software Description (OSD).

XML also become a standardized method for the exchange of data as well as documents. So XML become a way for databases from different vendors to exchange of data across the Internet. XML will also be used in a different ways. Firstly it is used for data interchange between users and machines, just like Web server to a user's browser.

The other thing is used for data exchange between applications, or from machine to machine. There are mostly two types of XML documents: well-formed and valid. A well-formed XML document follows the general rules of XML syntax, which are we can say that are either of HTML or SGML. And another type is Valid XML documents are documents that prepare for a specific Document Type Definition (DTD).

Confirming the validity of XML documents is largely the work for XML-capable browsers need only check for well-formed in order to read XML documents.

Know more about Xml File Validation at dotnetquestion.info


I find myself longing for the old days, when I could design a web site in 5 minutes on a Sunday and then go play golf for the rest of the afternoon, and still collect a full week of salary for services rendered. That was back in 1996, when the internet was still new. Websites were created exclusively with HTML. The client would email me the content for their website, which I would upload to FrontPage, then insert some tags and a template for formatting and layout, add some graphics, and that was it.

Nowadays, I find myself working up to 10 hours per day designing web sites. I have to use so many different programming languages and specifications when creating a site that it makes me dizzy. I can barely type this article because my brain literally hurts from all the different programming languages I have swirling around in my head.

You might be wondering why my job has become so complicated in recent years. Well, it started with the wireless revolution, which made cyberspace a darn mess. Now, every wireless gadget is equipped with access to the internet and email. Cell phones, palm tops, laptops, even computer screens in automobiles have web browsers. These gadgets have platforms and web browsers that are very different from what is installed on an ordinary desktop PC. These new web browsers are not compatible with many elements of the HTML programming language. As a result, websites created purely with HTML are often invisible or inaccessible to the wireless internet user.

New languages and specifications such as XHTML, XSL, and XML were created to conform to these new web browsers. XML was probably the most important innovation of them all. XML enabled web designers to define data without telling the browser how to display the data, unlike HTML, which both defines the data and tells the browser how to display it. XML data can be viewed on any platform or browser because it is a simple text file with no predefined tags, allowing the programmer to define data any number of ways. XHTML and XSL were created to convert XML files into actual web pages that had style and structure and could be viewed across all platforms and browsers.

Now that you understand how and why programming was changed, you are ready for a brief introduction to the main topic of this article, XML DOM. DOM stands for Document Object Model. XML DOM is both platform and language independent, and sets forth several document objects for XML, as well as the means for accessing and changing XML documents.

You should think of XML DOM as something that turns an XML document into a tree. Certain elements, or tags, become the branches, and other elements within those elements and their corresponding attributes are like the twigs attached to each individual branch. The elements can all be modified through this DOM tree.

The Microsoft XML Parser is used if the programmer wants to modify the tree by inserting and deleting some of the branches and twigs, and then convert the branches and twigs back to XML. The Microsoft XML Parser is compatible with all languages, including ASP, Javascript, Visual Basic, and others. Multiple browsers support the XML Parser, such as Internet Explorer and Mozilla, to name a few. The XML Parser is also used to check the syntax of the XML as needed.

If you want to load your XML document into XML DOM to create your tree and to start using the XML Parser, there are two ways you can do it. If you want to load an entire XML file into XML DOM, use the load( ) method. If you merely want to load a text string containing XML code into XML DOM, use the loadXML( ) method. To learn how to properly use these methods and how to create the XML DOM object with different programming languages, you should search for some simple online tutorials to help you get started.

Learning to use XML and all of the elements of XML programming are absolutely essential to the modern web designer. If you have no experience with XML, then instead of learning from online tutorials, it would be best if you enroll in some offline courses at a local college or computer science institute. If you do not make use of versatile specifications such as XML, XHTML, and XSL, then the websites you create will not be viewed properly across all platforms.
Article Source :

About Author
Both Adam Sturo & Jim Pretin are contributors for EditorialToday. The above articles have been edited for relevancy and timeliness. All write-ups, reviews, tips and guides published by EditorialToday.com and its partners or affiliates are for informational purposes only. They should not be used for any legal or any other type of advice. We do not endorse any author, contributor, writer or article posted by our team.

Adam Sturo has sinced written about articles on various topics from Family Travel, Architecture and Interview Questions. Adam Sturo provide you the best and latest info on and. Adam Sturo's top article generates over 49500 views. to your Favourites.

Jim Pretin has sinced written about articles on various topics from Insurance, Medicine and Homeopathic Remedies. Jim Pretin is the owner of , a service that helps programmers make email forms.. Jim Pretin's top article generates over 33100 views. to your Favourites.
EditorialToday has 0 sub sections. Such as . With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors