Jump to content

Is it Possible To Write and read xml files using php ?


Net123
 Share

Recommended Posts

is it plain text file or XML ?

Link to comment
Share on other sites

its xml file and i wanna write my links and titles, for ajax search so i need like this i need it for the xml file containg like this<pages><link> dnknsk</link><name>kdjhnskn</name></pages> if i writed it will contain with extra <pages>................

Link to comment
Share on other sites

did you check the link of simplexml boen gave you? you need to call addchild() from the node you want to insert in. http://in3.php.net/manual/en/simplexml.examples-basic.php <=basic usagehttp://in3.php.net/manual/en/simplexmlelement.addchild.php <=addchild()

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...