473,408 Members | 2,087 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

I need help for xml database

sir,

i am implementing Asp.Net in my project and new to xml database

i have web form which contains firstname and lastname and address and etc,...

whenever i am submit this page it will store on sql database and also xml database

i done sql database storage but i dont know how to add data to xml file.

Please help me

With Thanks

S.Senthil Nathan
Jan 9 '07 #1
2 1039
sir,

i am implementing Asp.Net in my project and new to xml database

i have web form which contains firstname and lastname and address and etc,...

whenever i am submit this page it will store on sql database and also xml database

i done sql database storage but i dont know how to add data to xml file.

Please help me

With Thanks

S.Senthil Nathan
hi senthil...
r u trying to write some data to an xml file?
then u can use some classes like XmlTextWriter and XmlDocument

here is d C# sample code...

String filename = Server.MapPath("temp.xml"); //to create an xml file in d current directory...

XmlTextWriter xwriter = new XmlTextWriter(filename , Encoding.UTF8);

XmlDocument xmldoc = new XmlDocument() ;

xwriter.WriteStartDocument();

xwriter.WriteStartElement("Root");

xwriter.WriteEndDocument();

xwriter.Close();

xmldoc.Load(filename);

XmlElement e1 = xmldoc.CreateElement("Element1");

xmldoc.DocumentElement.AppendChild(e1);

XmlElement e2 = xmldoc.CreateElement("Element2");

e2.InnerText = "Element2-text";

e1.AppendChild(e2);

XmlElement e3 = xmldoc.CreateElement("Element3");

e3.InnerText = "Element3-text";

e1.AppendChild(e3);

XmlElement e4 = xmldoc.CreateElement("Element4");

e4.InnerText = "Element4-text";

e1.AppendChild(e4);

xmldoc.Save(filename);

hope this helps...
thanx and rgrds,
sand...
Jan 9 '07 #2
Hi Sandeep,

Thanks for your valuable reply..

But am creating xml database from the sql database.. in Asp.Net

can you give me some code for this...

please i need it

very urgent

can u help me...

With Thanks
S.Senthil Nathan
Jan 19 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Heather Stovold | last post by:
Wow - deciding to program in python sure requires a lot of decisions! So far: I've decided on python for the programming language. I've decided on wxpython for the GUI.... I've decided on...
3
by: eddy princen | last post by:
Hello, i'm need some help, i want to run a website on a server with an sql database ( that in itself is no problem, i've done this before) but with a possibility to update the sql database with...
39
by: Scotter | last post by:
Okay I think my title line was worded misleadingly. So here goes again. I've got quite 20 identical MDB files running on an IIS5 server. From time to time I need to go into various tables and add...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
7
by: cider123 | last post by:
I'm coding a project using the following article as reference: http://www.codeproject.com/csharp/DynamicPluginManager.asp In this type of project, plugins are loaded dynamically into a Plugin...
5
by: HSP | last post by:
hi. i need to restore an old database. The db was backed up using a DLT drive, using 2 volumes. The content for the tapes was copied to file onto Solaris machine using rsh and dd (for backup...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
6
by: zaina | last post by:
hi everybody i am nwebie in this forum but i think it is useful for me and the member are helpful my project is about connecting client with the server to start exchanging messages between...
0
by: yoach | last post by:
i dont the prpopties file withe db2 is this ok:? # The target database platform. torque.database = db2 # The target package to put the generated classes in. torque.targetPackage =...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.