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

G

Guest

XMLDB lite engine for accessing XML data files via HTTP. Engine allows you
to request data from xml file with using XPath. Imagine you have a set of
XML files with your content data and can be queried via HTTP, just by
sending GET/POST request to your server. XMLDBelt gets your request, process
it and returns only the chunk of data that you requested. Less traffic, less
time spent to process arrived data on your end. So, on your script side you
have less amount data to parse, means saving on performance too. Please not
that its not kinda real XMLDB to handle your content data files with size
about 100-700Mb, XMLDBelt made to handle less amounts of data.

For more details please visit http://www.webatarim.com/downloads/xmldbelt/
 
H

hinet

Hi there, following cuts and code snippets will be related to XMLDBel
v1.2 and newer. So please check the version of engine first, before yo
going to try these functions.

Also, wanted to tell you, that you can get some detailed informatio
about using XMLDBelt with WDK by visiting http://www.mywdk.com an
checking manuals section. Just type one or more keywords into searc
field and u will have some results appeared.

Cheers,
Ev


-
hine
 
H

hinet

XMLDBelt Status Codes

More detailed information will be published a
http://www.mywdk.com/browse.asp?id=20

200
OK

404
File Not Found

405
Document has no data to process

500
Processing Error

501
No EDXM has been received

502
Empty Request

503
No Query Data

504
Empty Query

505
Not enough data to execute query

506
File operation failed. Document already exists.

50


-
hine
 
H

hinet

XMLDBelt full list of Query Commands you can find a
http://www.mywdk.com/browse.asp?id=21

Here is currently supported functions:

Please note that Query Commands are case sensitive, so please use th
small caps while you querying your XMLDBelt.


select
<select
from=”” with=””/>
Selecting the data from specified path and returns the content base
on XPath query

insert
<insert
into=””
with=””/>
Inserts data into specified xml data file. Insertion position is base
on XPath. Engine will make a CDATA section if insertion data is not
XML or non-well formed XML.

drop
<drop
file=””
with=””/>
Drops data from specified xml data file based on XPath positio
(optional). If XPath is not specified, - just empties whole data file.

create
<create
file=””
overwrite=””/>
Creates file in specified location. Overwrites existed file i
overwrite is set to ‘yes’.

upload
<upload
file=””
overwrite=””/>
Uploading file to server’s file repository. Overwrite has yes/n
values for allow or disallow engine to overwrite existed data file.

kill
<kill
file=””/>
Deleting specified file from repository.

transform
<transform
source=””
with=””
through=””/>
Transforms selected source document based on XPath query throug
specified XSLT

setproperty
<setproperty
key=””
value=””/>
Writes property into xmldbelt.config file

getproperty
<readproperty
key=””/>
Reads property from xmldbelt.config file

version
<version/>
Returns version information for engin


-
hine
 
H

hinet

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top