XML DOM Interview Preparation Guide
Download PDF

XML DOM Interview Questions and Answers will guide us now that the XML DOM is a W3C (World Wide Web Consortium) standard. The DOM defines a standard for accessing documents like XML and HTML, The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document, so learn XML DOM by this XML DOM Interview Questions with Answers guide

26 XML DOM Questions and Answers:

1 :: What does CVS stand for? Can you describe it in one sentence?

"CVS" is an acronym for the "Concurrent Versions System". CVS is a "Source Control" or "Revision Control" tool designed to keep track of source changes made by groups of developers working on the same files, allowing them to stay in sync with each other as each individual chooses.

2 :: How do I retrieve the comment from a specific version of a file?

This requires that you iterate through each version of the file looking for the label you want. Once the correct version of the file is identified you can retrieve the comment for that version. Below is some sample VB code demonstrating this: For Each objVSSVersion In objVSSObject.Versions If objVSSVersion.Action = "Beta 1" Then MsgBox(objVSSVersion.LabelComment) End If Next

3 :: Is it possible to trap file deletions and rollbacks using an add-in/VSS Ole Automation?

These events are not supported as of this posting by Rich Knox of Microsoft: Trapping Rollbacks/Deletions.

4 :: Does VSS OLE Automation support administrative functions?

VSS 6.0 supports some administrative functions.

5 :: Does VSS OLE Automation support label comments?

VSS 6.0 fully supports label comments. Label comments, however, are not available in VSS 5.0.

6 :: How do I select a database from the command line?

You can set the SSDIR environment variable to point to the location of the database’s SRCSAFE.INI file. • Chuck Kollars discusses the tradeoffs of a single vs multiple databases at his website.

7 :: Where can I find the SSSCC API?

► Microsoft discourages the use of the SSSCC API. Instead they propose you use the OLE Automation interface.
► However, if you still wish to use the API you can request the MSSCCI spec by writing to msscci@microsoft.com. They will send you the NDA you need to sign to get the spec, and then send you the spec.

8 :: How do I pin all the files within a project?

You can do this using the command-line pin parameter and the wildcard character for the file name. For example: SS PIN $/MyProject/*.* -VLver1

9 :: How do I get with respect to a label?

Need to use the '-v' switch with an 'L' after it to indicate a label (-R is for recursive): SS GET $project -VLmylabel -R

10 :: How do I find all changes between two dates?

Here's how to get a list of everything that has changed since a particular date and time from the command line. In the command "a" or "p", refers to a.m. or p.m. respectively. And the ~ is used to indicate you want the history between the dates and times specified. Note that the later date and time must be specified first. -R makes it recursive. SS HISTORY $/mybranch -R -VD3/03/95;3:00p~3/03/95;9:00a