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 !




How to Close Xml Child Tag in C#


Posted Date: 19 Jul 2008      Total Responses: 1

Posted By: ITS Raja       Member Level: Silver     Points: 1


I have a xml file. Insert the name and age within employee child tag.How to close the child tage.



Responses

Author: Vijaya saradhi    20 Jul 2008Member Level: SilverRating:     Points: 5
you can start an element in the following way

xmltextwriter wr=new xmltextwriter();
wr.writestartelement("name of the element");
name of the element.value="asdf";


for closing the element just write

wr.writeendelement();

if want to start and close an element just write

wr.writestringelment("name of the element","value for the element");

normally we write

<items>
<no>1</no>
</items>
i think you got my point



Post Reply
You must Sign In to post a response.
Next : TEI-XML
Previous : Loading XML file into GUI
Return to Discussion Forum
Post New Message
Category: XML

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

conference call definitions

Contact Us    Privacy Policy    Terms Of Use