Code:
on *:SOCKREAD:membership: {
  sockread %sock
  if ($sockbr == 0) return
  if ($sock($sockname).mark) {
    write membership.xml %sock
  }
  elseif (%sock == $null) {
    sockmark $sockname $true
  }
}


That works but problem now is when i try to view the xml in the i.e browser i get the error

Quote:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Whitespace is not allowed at this location. Error processing resource 'file:///C:/Documents and Settings/admin/My Documents...

<JoinedDate>0001-01-01T00:00:00-08:00</JoinedDate><ExpirationDate>0001-01-01T00:00:00</ExpirationDate&g...



Previously i used to remove the header stuff from the file manually and then open it in the browser and it used to work fine..