LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 15 Sep 2006 12:29:26 -0500
Reply-To:   "Peck, Jon" <peck@spss.com>
Sender:   "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:   "Peck, Jon" <peck@spss.com>
Subject:   Re: availability of XML workspaces
Comments:   To: Gary Rosin <grosin@stcl.edu>
In-Reply-To:   A<6.2.0.14.2.20060912144454.01e3ded8@mail.stcl.edu>
Content-Type:   text/plain; charset="utf-8"

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Gary Rosin Sent: Tuesday, September 12, 2006 3:17 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: [SPSSX-L] availability of XML workspaces

I'm struggling through OMS syntax and the related commands in the Python spssaux module: "CreateXMLOutput" and "GetValuesFromXMLWorkspace".

My questions have to do with the extent(s) to which a "tagged" XML workspace survives (is available for use) after:

(1) a change in platform: For example, suppose spss syntax *embedded* in a Python procedure directs SPSS output to a "tagged" XML workspace. How long is info in the workspace available to the Python procedure? [>>>Peck, Jon] The XMLWorkspace exists for the duration of your SPSS session, although switching to distributed mode (SPSS Server) counts as a new session. The workspace lives in memory

(2) an embedded SPSS "OMSEND" or [>>>Peck, Jon] OMS items are placed in the workspace only at OMSEND for an appropriate request. This timing is the same as if you wrote to a file or dataset.

(3) a Python/spssaux "spss.DeleteXPathHandle(handle) command? [>>>Peck, Jon] That will kill the item from the workspace

CreateXMLOutput returns a handle to the item in the workspace. It wraps your syntax in appropriate OMS commands, but you need to specify the items to select if the default won't work.

GetValuesFromXMLWorkspace uses that tag that the previous call returned, but it does not remove anything from the workspace.

You can get a listing of all the current tags in the workspace with spss.GetHandleList

HTH, Jon Peck (on vacation)

Gary

--- Gary Rosin <grosin@stcl.edu>

"The world is stronger than ideas about the world." --Linda Gregg


Back to: Top of message | Previous page | Main SPSSX-L page