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

Discussion in 'XML' started by Guest, Apr 27, 2004.

  1. Guest

    Guest 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/
     
    Guest, Apr 27, 2004
    #1
    1. Advertising

  2. Guest

    hinet Guest

    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
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message75799.htm
     
    hinet, May 2, 2004
    #2
    1. Advertising

  3. Guest

    hinet Guest

    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
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message75799.htm
     
    hinet, May 2, 2004
    #3
  4. Guest

    hinet Guest

    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
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message75799.htm
     
    hinet, May 2, 2004
    #4
  5. Guest

    hinet Guest

    hinet, May 2, 2004
    #5
  6. Guest

    hinet Guest

    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
     
    hinet, May 2, 2004
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hazz
    Replies:
    6
    Views:
    49,765
    SkyUCHC
    Jun 9, 2010
  2. Scott Abel
    Replies:
    0
    Views:
    349
    Scott Abel
    Jan 12, 2005
  3. Scott Abel
    Replies:
    0
    Views:
    360
    Scott Abel
    Jan 12, 2005
  4. Scott Abel
    Replies:
    0
    Views:
    438
    Scott Abel
    Sep 6, 2005
  5. Stephen
    Replies:
    4
    Views:
    328
    Stephen
    Nov 1, 2006
Loading...

Share This Page