Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
XML
<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.

XML
<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

1 solution

Hi,

Please try System.Xml;

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

Thanks,
Sriniavs
 
Share this answer
 
Comments
Ram Kumar(Webunitech) 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900