XML Insert and Delete

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tvks
    New Member
    • Nov 2006
    • 5

    #1

    XML Insert and Delete

    Dear all,

    I have an xml file called abc.xml. It is of the following format.
    [php]
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <contacts>
    <entry uri="sip:vinayg @company.org">
    <name>Vinay</name>
    <sip> sip:vinayg@comp any.org </sip>
    <Number> 9885821530 </Number>
    </entry>
    <entry uri="sip:vivek@ company.org">
    <name>Vivek</name>
    <sip> sip:vivek@compa ny.org </sip>
    <Number> 9885821530 </Number>
    </entry>
    <entry uri="sip:vinod@ company.org">
    <name>Vinod</name>
    <sip> sip:vinod@compa ny.org </sip>
    <Number> 9885821530 </Number>
    </entry>
    </contacts>
    [/php]
    I need to device a function

    (i) to insert a new <entry> tag and child nodes
    (ii) to delete an existing <entry> tag and its child nodes.

    Kindly help urgently. Thanx in advance.

    With regards,

    tvks
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Look at the following tutorial regarding XML processing with PHP XML and PHP processing

    Ronald :cool:

    Comment

    Working...