Patent ID: 7844574

Claim:
In a computer system having an XML document management server, a method for automatic network-based persistent XML storage and management, the method comprising: a client loading an XDM widget having internal XML; the XDM widget sending an XCAP GET request via an XCAP URI parameter; the server receiving the XCAP GET request and retrieving an existing XML document at a location associated with the XCAP URI parameter; in response to the server responding with a 404 Not Found Response, the XDM widget invoking an initizalizer callback function via the XDM widget to populate the internal XML with default values associated with an etag, wherein the etag is null; the XDM widget sending an XCAP PUT request via the XCAP URI to store the existing XML document; in response to the XCAP PUT request, executing etag header scenarios, including: when the etag is null, sending an if-not-match=* header in the XCAP request to ensure that an existing document is not replaced if one exists; when the etag is not null, Sending an if-match= in the XCAP request thereby replacing an existing document that matches the client etag; and in response to receiving an HTTP conflict response indicating that a local XML document is stale, replacing the local XML document with a document version on the server.