Article View: borland.public.csharpbuilder.language.csharp
Article #59Interview Questions Feb 11, 2006
From: Jobs
Date: Fri, 10 Feb 2006 20:42
Date: Fri, 10 Feb 2006 20:42
40 lines
2983 bytes
2983 bytes
What are the standard ways of parsing XML document? XML parser sits in between the XML document and the application who wants to use the XML document. Parser exposes set of well defined interfaces which can be used by the application for adding, modifying and deleting the XML document contents. Now whatever interfaces XML parser exposes should be standard or else that would lead to different vendors preparing there own custom way of interacting with XML document. There are two standard specifications which are very common and should be followed by a XML parser:- DOM: - Document Object Model. DOM is a W3C recommended way for treating XML documents. In DOM we load entire XML document into memory and allows us to manipulate the structure and data of XML document. SAX: - Simple API for XML. SAX is event driven way for processing XML documents. In DOM we load the whole XML document in to memory and then application manipulates the XML document. But this is not always the best way to process large XML documents which have huge data elements. For instance you only want one element from the whole XML document or you only want to see if the XML is proper which means loading the whole XML in memory will be quiet resource intensive. SAX parsers parse the XML document sequentially and emit events like start and end of the document, elements, text content etc. So applications who are interested in processing these events can register implementations of callback interfaces. SAX parser then only sends those event messages which the application has demanded. Full Interview Questions for .NET and SQL Server http://www.geocities.com/dotnetinterviews/ Help the community to make job search easier mail your questions to jobatyourdoorstep@yahoo.co.in Looking for a onsite job mail your resumes at jobatyourdoorstep@yahoo.co.in
Technical Details
Message-ID:
<1139604152.957334.59280@g44g2000cwa.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,6eb4ac6342deac51,start X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "Jobs" <jobatyourdoorstep@yahoo.co.in> Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Interview Questions Feb 11, 2006 Date: 10 Feb 2006 12:42:33 -0800 Organization: http://groups.google.com Lines: 41 Message-ID: <1139604152.957334.59280@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 203.190.152.62 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1139604158 13923 127.0.0.1 (10 Feb 2006 20:42:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 10 Feb 2006 20:42:38 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=203.190.152.62; posting-account=Yx-7lA0AAADGgLjb7izRE7u3aeVPTqg9