GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DotNet
Go To First  |  Previous Question  |  Next Question 
 DotNet  |  Question 102 of 165    Print  
How u can create XML file?

  
Total Answers and Comments: 2 Last Update: May 06, 2006     Asked by: Gopal 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 11, 2005 19:04:13   #1  
Harpreet Virk (Pilibangan)        

RE:

To write Dataset Contents out to disk as an XML file use:

MyDataset.WriteXML(server.MapPath("MyXMLFile.xml"))


 
Is this answer useful? Yes | No
May 06, 2006 02:50:55   #2  
sourabh        

RE: How u can create XML file?
XmlTextWriter textWriter new XmlTextWriter( filename.xml ); //WriteStartDocument and WriteEndDocument methods open and close a document for writing textWriter.WriteStartDocument() //write comment textWriter.WriteComment( this is my first xml file. ) textWriter.WriteComment( i'm lovin it ) textWriter.WriteStartElement( studentDB ) //write first element textWriter.WriteStartElement( student ) textWriter.WriteStartElement( name ); textWriter.WriteString( sourabh ); textWriter.WriteEndElement(); textWriter.WriterEndElement(); textWriter.WriteEndDocument(); textWriter.Close(); }
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : seeting the Expires Property to date less than todays date ...

True or False: To test a Web service you must create a windows application or Web application to consume this service?

An assembly is the primary building block of a .NET Framework application. It is a collection of functionality that is built, versioned, and deployed as a single implementation unit (as one or more 
Latest Answer : the above said answer is good ...

Assemblies are of two types 1. Private Assemblies 2. Shared AssembliesPrivate Assemblies: The assembly is intended only for one application. The files of that assembly must be placed in the same folder 
Latest Answer : 1)Private assembly2) Share Assembly3) Satellite Assembly ...

A namespace is a logical naming scheme for types in which a simple type name, such as MyType, is preceded with a dot-separated hierarchical name. Such a naming scheme is completely under control of 
Latest Answer : Namespace - It is a logical group of classes means it defines boundary for classes. In a single program 2 namespace cannot be have same name. Assemblies - These physical structure of coding and it can store manifest (metadata). Assembly can be ...

Metadata is information about a PE. In COM, metadata is communicated through non-standardized type libraries. In .NET, this data is contained in the header portion of a COFF-compliant PE and follows 
Latest Answer : In Simple words, Meta data is set of tables that describe  the types and its members  defined in the assembly and the types and its members referenced in the assembly. Manifest is another set of tables that describe the assembly attributes like ...
Tags : Metadata

An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve 
Latest Answer : whereas the manifest describes the assembly itself, providing the logical attributes shared by all the modules and all components in the assembly.The manifest contains the assembly name, version number, locale and an optional strong name that uniquely ...

A strong name consists of the assembly's identity — its simple text name, version number, and culture information (if provided) — plus a public key and a digital signature. It is 
Latest Answer : A strong name is a way to ensure that a shared assembly's name does not conflict with another shared assembly. A strong name contains assembly name, a public key and a private key. For installing an assembly into GAC you need to give it a strong name. ...

You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension.To create a key pair At the command prompt, type the following command: sn –k  
Latest Answer : To create a key pair use the dotnet command line tool sn.exesn.exe -k mykey.snkThis filename is used as the attribute value for AssemblyKeyFileAttribute in one of the code files of assembly. It generates a strong named assembly which could be installed ...

The global assembly cache stores assemblies specifically designated to be shared by several applications on the computer.You should share assemblies by installing them into the global assembly cache 
Latest Answer : A computer installed with the common language runtime has a machine-wide code cache known as Global Assembly Cache. In the .NET Framework, the Global Assembly Cache acts as the central place for registering the assemblies. All the shared Asp.Net assemblies ...


 Sponsored Links

 
Related Articles

What is Data File

In a logical data model, the conceptual data model which is based on the business semantic is being defined. Thus, entities and relationships and corresponding table and column design, object oriented classes, and XML tags, among other things are being laid regardless of the database will be physica
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

PHP Tutorials - File manipulation (Part-2)

File manipulation Part 2 In this PHP Tutorial you will learn the 2nd Part of File Manipulation Reading lines from a file Reading arbitrary amounts of data from a file Writing to a file Creating directories Removing a directory and Opening a directory for reading mosgoogle Reading lines from a file T
 

PHP Tutorials – File manipulation (Part 1)

PHP Tutorials File manipulation Part 1 In the PHP Tutorial You will learn about File manipulation Part 1 Checking file existence A file or directory Determining file size Creating and deleting files and Opening a file for writing reading or appending mosgoogle Checking file existence You can test
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

HR Interview - Telephone Interview Etiquette

Telephone Interview Etiquette When you conduct a telephone interview for a job it is important to show the proper etiquette Not only is it important it is critical is you wish to be hired by the company There are a number of things you will want to do and other things should never be done mosgoogle
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape