Hi All,

I am newbie to XML. I want to create only one XML file each day automatically using php function with the following format.

I want to use the same function for appending the follwing portion into the existing XML file

This portion need to append whenever the function is being called
    <Call>
  <StartTime>2012-07-12T01:13:01-00:00</StartTime>
  <User>adam</User>
  <Action>UI</Action>
  <Duration>0</Duration>
  <Application>Web apps</Application>
  <Interface>HTML (UI)</Interface>
  <Host>www.xyz.com</Host>
  </Call>
XML FILE FORMAT
<Monitor xsi:schemaLocation="http://xml.xyz.com/monitor/namespace http://xml.xyz.com/monitor/xsd/Monitor.xsd"
xmlns="http://xml.xyz.com/monitor/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Call>
  <StartTime>2012-07-12T01:13:01-00:00</StartTime>
  <User>adam</User>
  <Action>UI</Action>
  <Duration>0</Duration>
  <Application>Web apps</Application>
  <Interface>HTML (UI)</Interface>
  <Host>www.xyz.com</Host>
</Call>
<Call>
  <StartTime>2012-07-12T01:13:01-00:00</StartTime>
  <User>john</User>
  <Action>UI</Action>
  <Duration>0</Duration>
  <Application>Web apps</Application>
  <Interface>HTML (UI)</Interface>
  <Host>www.xyz.com</Host>
</Call>

## need to append here whenever the function calls##
</Monitor>

can somebody help or guide me to do this task ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.