C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




adding url in xml start document


Posted Date: 02 Sep 2008      Total Responses: 1

Posted By: Santhosh       Member Level: Gold     Points: 1


Hi,
XmlTextWriter xmlw= new XmlTextWriter("D://mail.xml",null);
xmlw.WriteStartDocument();
xmlw.WriteStartElement("Mail");
xmlw.WriteElementString("UserName", txtUseName);
xmlw.WriteElementString("Password", txtPassword);
xmlw.WriteEndElement();
xmlw.WriteEndDocument();
xmlw.Close();

Iam Creating the Xml as above code now its working fine but i want to add some url in start Document how?
i want like this

<Mail xmlns="http://hotmail.com">
<UserName>aaa</UserName>
<Password>123</Password>
</Mail>




Responses

Author: Satalaj More    02 Sep 2008Member Level: SilverRating:     Points: 2
http://www.revenmerchantservices.com/ajax/xmlElement%20url.aspx


Post Reply
You must Sign In to post a response.
Next : xml
Previous : XML
Return to Discussion Forum
Post New Message
Category: XML

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use