Click here to Skip to main content
12,622,652 members (27,930 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET XML web-dev
Please help me,
I am new on xml and i know little information in xml. Please any one help me to Add/ Edit/ Delete on Xml file Record.
This XML File Contain Gallery Data.
User can want to add, edit, delete record in xml file. using a web base graphical environment.

user can add new Category, and edit and delete any category.

i want to edit those part type in xml file.
<category name="GIET Building">
        <image>
            <date>12.31.2011</date>
            <title>GIET Gallery</title>
            <desc>GIET Gallery</desc>
            <thumb>building1.JPG</thumb>
            <img>building1.JPG</img>
        </image>
        <image>
            <date>12.31.2011</date>
            <title>GIET Gallery</title>
            <desc>GIET Gallery</desc>
            <thumb>building2.jpg</thumb>
            <img>building2.jpg</img>
        </image>
        </category>

this is xml source file contain these type of data.

<gallery title="GIET Album" thumbDir="gallery/thumb/" imageDir="gallery/" random="true">
    <category name="GIET Building">
        <image>
            <date>12.31.2011</date>
            <title>GIET Gallery</title>
            <desc>GIET Gallery</desc>
            <thumb>building1.JPG</thumb>
            <img>building1.JPG</img>
        </image>
        <image>
            <date>12.31.2011</date>
            <title>GIET Gallery</title>
            <desc>GIET Gallery</desc>
            <thumb>building2.jpg</thumb>
            <img>building2.jpg</img>
        </image>
        </category>
        <category name="Receiption">
        <image>
            <date>12.31.2011</date>
            <title>GIET Gallery</title>
            <desc>GIET Gallery</desc>
            <thumb>reception1.JPG</thumb>
            <img>reception1.JPG</img>
        </image>
        </category>
</gallery>
Posted 11-Apr-11 6:02am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Hi,

Please try System.Xml;

you can use XmlTextwriter for adding categories... try and see.

Thanks,
Sriniavs
  Permalink  
Comments
ram_kumar 11-Apr-11 11:47am
   
i am know about systemx.xml and
xmltextwriter

but i am new in xml.
If you help me how to add /delete new record
just
plz help me
its urgent
Srinivas39 14-Apr-11 6:38am
   
You got that worked?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 11 Apr 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100