xml Interview Questions and Answers


 

Interview Question in xml

Can you tell me what is XML ?

Can you tell me what is XML ?

Need for speed carbon display error

i have installed nfs carbon and when i run carbon ...i goes fullscreen and then comes out giving me an error message. it goes somethin like this..


<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="NFSC.exe" FILTER="GRABMI_FILTER_PRIVACY">
<MATCHING_FILE NAME="EAInstall.dll" SIZE="720896" CHECKSUM="0xC3AAECA5" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/12/2006 17:56:43" UPTO_LINK_DATE="10/12/2006 17:56:43" />
<MATCHING_FILE NAME="eauninstall.exe" SIZE="253952" CHECKSUM="0xAC21038" BIN_FILE_VERSION="1.0.0.0" BIN_PRODUCT_VERSION="1.0.0.0" PRODUCT_VERSION="1.00.00.000" FILE_DESCRIPTION="Uninstall" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="EA Uninstall" FILE_VERSION="1.00.00.000" ORIGINAL_FILENAME="eauninstall7.exe" INTERNAL_NAME="eauninstall7.exe" LEGAL_COPYRIGHT="© 2004-2005 Electronic Arts Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.0" UPTO_BIN_PRODUCT_VERSION="1.0.0.0" LINK_DATE="10/12/2006 17:56:56" UPTO_LINK_DATE="10/12/2006 17:56:56" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="msvcp71.dll" SIZE="499712" CHECKSUM="0x961BEC37" BIN_FILE_VERSION="7.10.3077.0" BIN_PRODUCT_VERSION="7.10.3077.0" PRODUCT_VERSION="7.10.3077.0" FILE_DESCRIPTION="Microsoft® C++ Runtime Library" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Visual Studio .NET" FILE_VERSION="7.10.3077.0" ORIGINAL_FILENAME="MSVCP71.DLL" INTERNAL_NAME="MSVCP71.DLL" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x8657E" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="7.10.3077.0" UPTO_BIN_PRODUCT_VERSION="7.10.3077.0" LINK_DATE="03/19/2003 04:14:51" UPTO_LINK_DATE="03/19/2003 04:14:51" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="msvcr71.dll" SIZE="348160" CHECKSUM="0x448A147E" BIN_FILE_VERSION="7.10.3052.4" BIN_PRODUCT_VERSION="7.10.3052.4" PRODUCT_VERSION="7.10.3052.4" FILE_DESCRIPTION="Microsoft® C Runtime Library" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Visual Studio .NET" FILE_VERSION="7.10.3052.4" ORIGINAL_FILENAME="MSVCR71.DLL" INTERNAL_NAME="MSVCR71.DLL" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x5F1E9" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="7.10.3052.4" UPTO_BIN_PRODUCT_VERSION="7.10.3052.4" LINK_DATE="02/21/2003 12:42:20" UPTO_LINK_DATE="02/21/2003 12:42:20" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="nfsc.exe" SIZE="8904704" CHECKSUM="0xDBB08DDB" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/17/2006 04:08:43" UPTO_LINK_DATE="10/17/2006 04:08:43" />
<MATCHING_FILE NAME="nfs_inst.exe" SIZE="53248" CHECKSUM="0x96666241" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/11/2006 00:00:05" UPTO_LINK_DATE="10/11/2006 00:00:05" />
<MATCHING_FILE NAME="nfs_uninst.exe" SIZE="45056" CHECKSUM="0x40A35D79" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/11/2006 00:00:02" UPTO_LINK_DATE="10/11/2006 00:00:02" />
<MATCHING_FILE NAME="server.dll" SIZE="380928" CHECKSUM="0x49D0382F" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="10/20/2005 21:17:24" UPTO_LINK_DATE="10/20/2005 21:17:24" />
<MATCHING_FILE NAME="setup.exe" SIZE="22016" CHECKSUM="0xB60E199" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="07/06/2006 17:41:10" UPTO_LINK_DATE="07/06/2006 17:41:10" />
<MATCHING_FILE NAME="Support\EasyInfo.exe" SIZE="561152" CHECKSUM="0xBC263F5A" BIN_FILE_VERSION="2.0.2.5" BIN_PRODUCT_VERSION="2.0.2.5" PRODUCT_VERSION="2,0,2,5" FILE_DESCRIPTION="EasyInfo 2" COMPANY_NAME="Electronic Arts" PRODUCT_NAME="EasyInfo 2" FILE_VERSION="2,0,2,5" ORIGINAL_FILENAME="EasyInfo.exe" INTERNAL_NAME="EasyInfo.exe" LEGAL_COPYRIGHT="Copyright © 2004 Electronic Arts Inc. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="2.0.2.5" UPTO_BIN_PRODUCT_VERSION="2.0.2.5" LINK_DATE="07/19/2004 23:23:47" UPTO_LINK_DATE="07/19/2004 23:23:47" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="Support\EReg.exe" SIZE="618496" CHECKSUM="0x7D469126" BIN_FILE_VERSION="1.0.0.59" BIN_PRODUCT_VERSION="1.0.0.59" PRODUCT_VERSION="1, 0, 0, 59" FILE_DESCRIPTION="" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="EReg" FILE_VERSION="1, 0, 0, 59" ORIGINAL_FILENAME="EReg.exe" INTERNAL_NAME="EReg" LEGAL_COPYRIGHT="© 2004 Electronic Arts Inc. All Rights Reserved" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.59" UPTO_BIN_PRODUCT_VERSION="1.0.0.59" LINK_DATE="10/10/2003 09:08:02" UPTO_LINK_DATE="10/10/2003 09:08:02" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="Support\Need for Speed Carbon_code.exe" SIZE="323584" CHECKSUM="0xF1DC0882" BIN_FILE_VERSION="1.5.4.0" BIN_PRODUCT_VERSION="1.5.4.0" PRODUCT_VERSION="1.05.04.00" FILE_DESCRIPTION="CDKey" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="CDKey" FILE_VERSION="1.05.04.00" ORIGINAL_FILENAME="CDKey.exe" INTERNAL_NAME="CDKey.exe" LEGAL_COPYRIGHT="© Electronic Arts Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.5.4.0" UPTO_BIN_PRODUCT_VERSION="1.5.4.0" LINK_DATE="08/19/2005 17:48:32" UPTO_LINK_DATE="08/19/2005 17:48:32" VER_LANGUAGE="English (United States) [0x409]" />
<MATCHING_FILE NAME="Support\Need for Speed Carbon_uninst.exe" SIZE="73728" CHECKSUM="0x71FE2226" BIN_FILE_VERSION="1.5.4.0" BIN_PRODUCT_VERSION="1.5.4.0" PRODUCT_VERSION="1.05.04.00" FILE_DESCRIPTION="Uninstalls the CD key" COMPANY_NAME="Electronic Arts Inc." PRODUCT_NAME="Uninstall CDKey" FILE_VERSION="1.05.04.00" ORIGINAL_FILENAME="CDKey_Uninstaller.exe... INTERNAL_NAME="CDKey_Uninstaller" LEGAL_COPYRIGHT="© Electronic Arts Inc." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.5.4.0" UPTO_BIN_PRODUCT_VERSION="1.5.4.0" LINK_DATE="08/19/2005 16:15:59" UPTO_LINK_DATE="08/19/2005 16:15:59" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
<MATCHING_FILE NAME="kernel32.dll" SIZE="984064" CHECKSUM="0xF12E1D4A" BIN_FILE_VERSION="5.1.2600.2945" BIN_PRODUCT_VERSION="5.1.2600.2945" PRODUCT_VERSION="5.1.2600.2945" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.2945 (xpsp_sp2_gdr.060704-2349)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF724D" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2945" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2945" LINK_DATE="07/05/2006 10:55:00" UPTO_LINK_DATE="07/05/2006 10:55:00" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>


i ve tried updating my driver .it dint work..
and my directx is upto date..and everyother game works jus fine..except for this one

pls help me out..

Including header files in the subdirectories

Hi,

I am using Microsoft Visual C++ Express edition 2005 for writing a program. I needed an xml parsing library and i chose to use the Xerces libraries. The problem is that the header files are located in my D:\Program Files\Microsoft Visual Studio 8\VC\include\xercesc directory. the search path for the include files includes the path till D:\Program Files\Microsoft Visual Studio 8\VC\include so the compiler doesnt search within the xercesc directory and i am getting file not found error when i use #include<xercesc\utils\Platformutils.hpp... How to make the compiler search within the subdirectories of the included paths???
Also is the statement
#include<xercesc\utils\Platformutils.h...
correct??

Creating a reference in visual studio 2005 VB

I’m trying to get a reference to work. I made a library:

Class1.vb:

Namespace myNamespace
Public Class SimpleTest
Public Shared Function GetInfo(ByVal param As String) As String
Return "You invoked SimpleTest.GetInfo() with '" & param & "'"
End Function
End Class
End Namespace

and compiled it into a dll.

I created a website and created a reference to the dll in Visual Studio 2005. ClassLibrary1.dll, ClassLibrary1.pdb and ClassLibrary1.xml were copied into the Bin directory.

Here’s the code behind the page


Imports myNamespace
Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Label1.Text = SimpleTest.GetInfo("Hi")

End Sub
End Class

myNamespace and SimpleTest.GetInfo() cause errors.

The Load Method for the DOM Failed

I'm using VB6 and ASP 3 with SQL Server 2000 - trying to get xml but when I run code I'm getting "The Load Method for the DOM Failed" I checked all my database connections are correct all refrences seems ok my code is following


Dim objXMLDoc As MSXML2.DOMDocument40
Set objXMLDoc = New MSXML2.DOMDocument40
objXMLDoc.async = False

'Load the location of the template
objXMLDoc.Load (m_sXMLPath &
XslTmpltUsgSprocNstd)


Thanks
Raza Shah

How do I use OPENXML with mixed/multiple elements and attributes

How do I use OPENXML in SQL Server 2000 with some elements that are repeated and some elements only contain attributes but others don't?

The problematic part of my XML looks like this:
<ResultSet>
<Result>
<hoursSaturday>Noon to 6:00 pm</hoursSaturday>
<hoursSunday>Closed to Closed</hoursSunday>
<image url="7777.png"/>
<image url="149.png"/>
<field title="Directions" value="From Aber "/>
<field title="Accreditations" value="We belong"/>
</Results>
</ResultSet>

When I use: SELECT *
FROM openxml(@hdoc, '//spResultSet/result', 2)
WITH ([image] varchar(300) 'image/@url',
[image] varchar(300) 'image/@url',
field varchar(255) 'field/@value',
field varchar(255) 'field/@value',

whatever the last @url is gets put into every [image] column, same as the last @Value gets put into every field column.

If I use a 0 or 1 for my flags in my OPENXML statement, other fields aren't read right. I think I need help with the XPATH

Help in SqlServer 2000

Create dts package in sql server 2000
that will execute stored procedure and display output as an xml file.

in short, i need,
steps To create an XML file from a SQL stored procedure in Sql Server 2000.

I am not able to see the entire column in my data table when I am running my select statement in sql query an

This is sql server 2000 and I am using sql query analyser to run the query to see some xml but the xml is chopped off but I know it is saving the complete xml in the database. How do I do it?

How to store xml file in MS Sql server 2000

Hi to all,

I have a problem regarding storing xml file in Ms sql server 2000.

Is it possible by using blob?

If yes then how?

Thanx in Advance

Niraj

Help in sql server 2000

Create dts package in sql server 2000
that will execute stored procedure and display output as an xml file.

in short, i need,
steps To create an XML file from a SQL stored procedure in Sql Server 2000.

Example applications using DBCP and JNDI

Are there any straight-forward examples containing the correctly configured context.xml and web.xml files for a Tomcat 6 web app....enabling the following code to be used from inside of a servlet?

--------------------------------------...
....
Context initialContext = new InitialContext();
Context env = (Context) initialContext.lookup("java:comp/env");
DataSource dataSource = (DataSource) env.lookup("jdbc/"+databaseName);
connection = dataSource.getConnection();
.....
--------------------------------------...

I would like to implement connection pooling for a few different sql server 2005 data-sources, but my configuration seems to be incorrect.

WHY WONT ANYONE ANSWER THIS QURSTION OR help me??

I need 2 start fresh I HAD a website ran on yahoo. I took a template and re-wrote the code to suite my needs(iam new 2 playing with html) it worked fine and I could have used it.however I didnt like the look(it was a generic template)and I found one better.I also learned about ASP.NET and its use w/ members websites databases SQL servers.I then switched web hosting to godaddy yahoo doesnt support ASP I am using Visual Web Developer Express edition, I also have Microsoft SQL server 2005. I have set up a database on my webhosting, I have enabled TCP/IP in the SQL server configuration manager, yet I cannot connect 2 my database when I run aspnet_regsql.exe program..
right now this is all that is in my web.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<authorization>
<allow roles="users" />
</authorization>
<roleManager enabled="true" />
<authentication mode="Forms" />
</system.web>
</configuration>
I know the connection strings info just not where it go

How to install ms sql server 2005 express edition

i want to install ms sql server 2005 express edition(advance series sp2)
are these steps rite to go, i have win xp sp2

- install .net frame work 2.0
- install msxml 6.0
- install information server 5
- join server to active dir domain(??)
- install sql server express edition with advavnced series sp2 (SQLEXPR_ADV.EXE)

2 questions, can anyone plz help
1.when should i install server management studio express

2. when and how do i join the server(VMware) to active directory domain

thanks

Can these queries run on sql server 2005 express edition

I have sql server 2005 express edition installer.

I have to do queries related to joins,fulltext search,xml data,stored procedure,transaction,view,index,managed code.

so i want to know can these queries run on express edition? for someone told me that express doesn't have full features.

Help Please... ASP amp; VB .NET and Dynamic Crystal Reports

I need to use SQL Server 2005 stored procedure with parameters as a datasource for my report.

I tried creating an xml file of a dataset that used the stored procedure as a datasource. I also tried using the report document's SetParameterValue() to set the parameters. However, the report does not display.

Can someone please walk me through the entire process? You can e-mail me if you like. I am at a new job; and, this is my probationary period.

In the following code, I already added the parameters to the SQLCommand object (myCommand):


Dim myAdapter As SqlDataAdapter

'Dim myDataset As dsCheckTimeOff
Dim myDataSet As DataSet


myAdapter = New SqlDataAdapter(myCommand)


myDataSet = New DataSet
myDataSet.Clear()

myAdapter.Fill(myDataset)

If myDataSet.Tables(0).Rows.Count > 0 Then
myGridView.DataSource = myDataSet
myGridView.DataBind()



myReportDocument = New CrystalDecisions.CrystalReports.Engine.R...

myReportDocument.Load("C:\rptTest_2_24_0...

'***************************************...

myReportDocument.SetParameterValue("@Sel... "All")
myReportDocument.SetParameterValue("@Sup... "1200")
myReportDocument.SetParameterValue("@Sta... 2 / 1 / 2008)
myReportDocument.SetParameterValue("@End... 2008 - 2 - 29)
myReportDocument.Load("C:\rptTest_2_24_0...


myReportDocument.SetDataSource(myDataSet...

CrystalReportViewer1.ReportSource = myReportDocument
CrystalReportViewer1.DataBind()
'CrystalReportViewer1.DisplayToolbar = False

CrystalReportViewer1.Visible = True

Question at bottom

Can anyone tell me of a asp.net 2.0 text book where it actually designs a website step by step using xml and shopping cart programming .


Thanks

Adding a textbox to treeview in asp.net 2.0

I have to create an xml editor wherein the contents of xml file are displayed in textboxes under a treeview so that i can edit & save the changes back to xml file.

Please if u can provide any kind of help, guidance, links would be great.

Thanks in advance

How can I retrieve the value of a particular xml node using vb script and asp.net 2.0

If I have the following XML file:

<?xml version="1.0" encoding="iso-8859-1" ?>
<Settings>
- <update>
<software>program 1</software>
<version>01/31/08</version>
</update>
<update>
<software>program 2</software>
<version>02/02/08</version>
</update>
<update>
<software>program 3</software>
<version>03/01/08</version>
</update>
</Settings>

What VB script can I use to return on an asp.net 2.0 page The version of "Program 2" (I should see 02/02/08).

Any help would be greatly appreciated. Many Thanks!

What is the best way to index thousands of documents for use in a ASP NET 2.0 web site

I want to be able to add/delete documents, (mainly PDF's) allow my users to add documents in a members based service. What is the best way to index these documents as they are uploaded/donated/or already exist in certain folders? Basically I am looking for a program of some sort that allows me to index them into a SQL DB or XML file where I can then write code to allow searching of the indexed information and pull up the correct documents. The basic need is what is the best tool to use to index the content so I have a db to pull from in search queries based on keywords so I can show the most relevant documents to their search text. Is there a program or plug in of somekind that already indexes PDF's etc and places them into a db or xml format so I can use this info to create my own custom search script/results layout so they can open these docs if they find what they need?
12