Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Ann: XMLDBelt v.1.0, server addition to handle content management via xml data files

From: hinet <hinet.15pqr7@----.---------------.--->
To: NULL
Date: 5/1/2004 8:05:00 PM
Sample ASP/VBScript to query remote XMLDBelt server:

<%
Response.Status = 200
Response.Clear 

Dim HTTP
Set HTTP = Server.CreateObject("Msxml2.XMLHTTP.4.0")

dim xmlCmd
'- select
'xmlCmd = "<edxm><query><select from='myxmldocument.xml
with='//events'/></query></edxm>"

'- setproperty
'xmlCmd = "<edxm><query><setproperty key='user
value='admin'/></query></edxm>"

'- getproperty  
'xmlCmd = "<edxm><query><getpropert
key='repository'/></query></edxm>"

xmlCmd = "<edxm><query><creat
file='%repository%events.xml'/></query></edxm>"

HTTP.open "POST", "http://localhost/xmldb/index.aspx", false
HTTP.send (xmlCmd)

Dim httpResponse

If http.status <> 200 Then
Response.ContentType = "text/html"
httpResponse = "HTTP Error #" & Http.status 
Else
Response.ContentType = "text/xml"
httpResponse = HTTP.responseText 
End If

Response.Write httpResponse

Set HTTP = Nothing

Response.End
%


-
hine
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message75799.htm
 


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent