0

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 ?

2
Contributors
1
Reply
3
Views
4 Years
Discussion Span
Last Post by pritaeas
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.