Need Quick help in Php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi buddy need little help in making and updating RSS feedsi m using XMLDOM for RSSfeedssupposed i make xml file from below code  //creating XML file $xml = new DOMDocument();$xml->formatOutput = true;
$xml_properties=$xml->createElement("Properties");$xml_property = $xml->createElement("Property");$xml_ap = $xml->createElement("Apartment");$xml_room = $xml->createElement("Room");$xml_ap->nodeValue = 'Apartment Ref# XXXX';$xml_room->nodeValue = '4';$xml_property->appendChild($xml_ap );$xml_property->appendChild($xml_room );$xml_properties->appendChild($xml_property );$xml->appendChild($xml_properties );
$xml->save("test.xml");// End creating XML file
Result :-<?xml version="1.0"?><Properties>  <Property>    <Apartment>Apartment Ref# XXXX</Apartment>    <Room>4</Room>  </Property></Properties>


now i want to update this xml file to insert more property 
<?xml version="1.0"?><Properties>  <Property>    <Apartment>Apartment Ref# XXXX</Apartment>    <Room>4</Room>  </Property>blah blah ....................  <Property>    <Apartment>Apartment Ref# XXXX</Apartment>    <Room>4</Room>  </Property>



</Properties>
so can u tell me how can insert, update or delete records in this thankx in advance 


 



  










[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux