Update of /cvsroot/monetdb/MonetDB5/src/modules/mal/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29144

Modified Files:
        All inspect05.stable.out 
Added Files:
        batxml100.mal xml00.mal xml00.stable.err xml00.stable.out 
        xml01.mal xml01.stable.err xml01.stable.out xml02.mal 
        xml02.stable.err xml02.stable.out xml03.mal 
Log Message:
A round of implementation of the basic SQL/XML runtime facilities.
Work to do: XMLelement tail is not properly access.


Index: All
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/Tests/All,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- All 19 Aug 2007 18:36:29 -0000      1.40
+++ All 21 Aug 2007 20:52:54 -0000      1.41
@@ -37,3 +37,8 @@
 remote01
 remote02
 remote03
+
+xml00
+xml01
+xml02
+xml03

Index: inspect05.stable.out
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/mal/Tests/inspect05.stable.out,v
retrieving revision 1.322
retrieving revision 1.323
diff -u -d -r1.322 -r1.323
--- inspect05.stable.out        20 Aug 2007 21:38:48 -0000      1.322
+++ inspect05.stable.out        21 Aug 2007 20:52:54 -0000      1.323
@@ -38,17 +38,27 @@
 # str                                  str             str             str     
                                                                                
                                str                                             
  # type
 
#-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------#
 [ "main",                                "function",     "user",         
"():void;",                                                                     
                                        "nil"                                   
        ]
+[ "agg",                                 "pattern",      "xml",          
"(val:bat[:oid,:xml],order:str...):bat[:oid,:xml] ",                            
                                                        "BATXMLagg;"            
                ]
 [ "attributes",                          "pattern",      "xml",          
"(val:bat[:oid,:xml]...):bat[:oid,:xml] ",                                      
                                        "BATXMLattributes;"                     
        ]
 [ "attribute",                   "command",      "xml",          
"(name:str,val:bat[:oid,:str]):bat[:oid,:xml] ",                                
                                        "BATXMLattribute;"                      
        ]
 [ "attributes",                          "pattern",      "xml",          
"(val:xml...):xml ",                                                            
                                        "XMLattributes;"                        
        ]
 [ "attribute",                   "command",      "xml",          
"(name:str,val:str):xml ",                                                      
                                        "XMLattribute;"                         
        ]
 [ "concat",                      "pattern",      "xml",          
"(val:bat[:oid,:xml]...):bat[:oid,:xml] ",                                      
                                        "BATXMLconcat;"                         
        ]
+[ "comment",                             "command",      "xml",          
"(val:bat[:oid,:str]):bat[:oid,:xml] ",                                         
                                                        "BATXMLcomment;"        
                ]
 [ "concat",                      "pattern",      "xml",          
"(val:xml...):xml ",                                                            
                                        "XMLconcat;"                            
        ]
+[ "comment",                             "command",      "xml",          
"(val:str):xml ",                                                               
                                                        "XMLcomment;"           
                ]
 [ "element",                     "pattern",      "xml",          
"(name:str,ns:bat[:oid,:str],attr:bat[:oid,:xml],s:bat[:oid,:xml]...):bat[:oid,:xml]
 ",                                 "BATXMLelement;"                            
    ]
 [ "element",                     "pattern",      "xml",          
"(name:str,ns:bat[:oid,:str],attr:xml,s:xml...):xml ",                          
                                        "XMLelement;"                           
        ]
 [ "forest",                      "pattern",      "xml",          
"(val:bat[:oid,:xml]...):bat[:oid,:xml] ",                                      
                                        "BATXMLforest;"                         
        ]
 [ "forest",                      "pattern",      "xml",          
"(val:xml...):xml ",                                                            
                                        "XMLforest;"                            
        ]
-[ "str",                         "command",      "xml",          
"(src:bat[:oid,:xml]):bat[:oid,:str] ",                                         
                                        "BATXMLxml2str;"                        
        ]
+[ "isdocument",                                  "command",      "xml",        
  "(val:bat[:oid,:str]):bat[:oid,:bit] ",                                       
                                                          "BATXMLisdocument;"   
                  ]
+[ "isdocument",                                  "command",      "xml",        
  "(val:str):bit ",                                                             
                                                          "XMLisdocument;"      
                  ]
+[ "pi",                                          "command",      "xml",        
  "(operator:str,ret:bat[:oid,:xml]):bat[:oid,:xml] ",                          
                                                          "XMLpi;"              
                  ]
+[ "parse",                               "command",      "xml",          
"(val:bat[:oid,:str]):bat[:oid,:xml] ",                                         
                                                        "BATXMLparse;"          
                ]
+[ "pi",                                          "command",      "xml",        
  "(nme:str,val:str):xml ",                                                     
                                                          "XMLpi;"              
                  ]
+[ "parse",                               "command",      "xml",          
"(val:str,option:str):xml ",                                                    
                                                        "XMLparse;"             
                ]
+[ "root",                                "command",      "xml",          
"(val:xml,version:str,standalone:str):xml ",                                    
                                                        "XMLroot;"              
                ]
+[ "str",                                 "pattern",      "xml",          
"(src:bat[:oid,:xml]):bat[:oid,:str] ",                                         
                                                        "BATXMLxml2str;"        
                ]
 [ "str",                         "command",      "xml",          
"(src:xml):str ",                                                               
                                        "XMLxml2str;"                           
        ]
 [ "trunk",                       "command",      "xml",          
"(nme:str,val:bat[:oid,:xml]):bat[:oid,:xml] ",                                 
                                        "BATXMLtrunk;"                          
        ]
 [ "trunk",                       "command",      "xml",          
"(nme:str,val:xml):xml ",                                                       
                                        "XMLtrunk;"                             
        ]

--- NEW FILE: xml01.mal ---
b:= bat.new(:oid,:str);
bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");

io.print(b);

bc:= xml.attribute("name",b);
bj:= xml.str(bc);
io.print(bj);

--- NEW FILE: xml00.stable.out ---
stdout of test 'xml00` in directory 'src/modules/mal` itself:


# 22:46:59 >  
# 22:46:59 >  Mtimeout -timeout 60  mserver5 
"--config=/ufs/mk/monet5/Linux/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs" --set 
"xquery_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/xquery_logs" --set 
mapi_open=true --set xrpc_open=true --set mapi_port=37863 --set xrpc_port=42558 
--set monet_prompt= --trace --dbname=mTests_src_modules_mal  xml00.mal
# 22:46:59 >  

# MonetDB server v5.1.0, based on kernel v1.19.0
# Serving database 'mTests_src_modules_mal'
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2007 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://gio.ins.cwi.nl:37863/
#b:= bat.new(:oid,:str);
#bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
#bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");
#
#io.print(b);
#
#bc:= xml.comment(b);
#bj:= xml.str(bc);
#io.print(bj);
#
function user.main():void;      # 0  (main:void)
    b := bat.new(:oid,:str);    # 1 CMDBATnew 
(b:bat[:oid,:str])<-(_2:oid)(_3:str)
    bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");  # 2 BKCinsert_bun 
(_4:void)<-(b:bat[:oid,:str])(_5:oid)(_6:str)
    bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");    # 3 BKCinsert_bun 
(_7:void)<-(b:bat[:oid,:str])(_8:oid)(_9:str)
    io.print(b);        # 4 IOprint_val (_10:void)<-(b:bat[:oid,:str])
    bc := xml.comment(b);       # 5 BATXMLcomment 
(bc:bat[:oid,:xml])<-(b:bat[:oid,:str])
    bj := xml.str(bc);  # 6 BATXMLxml2str 
(bj:bat[:oid,:str])<-(bc:bat[:oid,:xml])
    io.print(bj);       # 7 IOprint_val (_13:void)<-(bj:bat[:oid,:str])
end main;       # 8  
#---------------------------------#
# h     t                         # name
# void  str                       # type
#---------------------------------#
[ [EMAIL PROTECTED],      "Mary Ann Walker"       ]
[ [EMAIL PROTECTED],      "Annie Chapman"         ]
#-----------------------------------------#
# h     t                                 # name
# void  str                               # type
#-----------------------------------------#
[ [EMAIL PROTECTED],      "<!-- Mary Ann Walker -->\n"    ]
[ [EMAIL PROTECTED],      "<!-- Annie Chapman -->\n"      ]

# 22:46:59 >  
# 22:46:59 >  Done.
# 22:46:59 >  


--- NEW FILE: xml01.stable.err ---
stderr of test 'xml01` in directory 'src/modules/mal` itself:


# 22:46:59 >  
# 22:46:59 >  Mtimeout -timeout 60  mserver5 
"--config=/ufs/mk/monet5/Linux/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs" --set 
"xquery_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/xquery_logs" --set 
mapi_open=true --set xrpc_open=true --set mapi_port=37863 --set xrpc_port=42558 
--set monet_prompt= --trace --dbname=mTests_src_modules_mal  xml01.mal
# 22:46:59 >  

#warning: please don't forget to set your vault key!
#(see /ufs/mk/monet5/Linux/etc/monetdb5.conf)

# 22:46:59 >  
# 22:46:59 >  Done.
# 22:46:59 >  


--- NEW FILE: xml02.mal ---
b:= bat.new(:oid,:str);
bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");
h:= bat.new(:oid,:str);
bat.insert(h,[EMAIL PROTECTED],"brown");
bat.insert(h,[EMAIL PROTECTED],"curly dark brown");

io.print(b);

bc:= xml.attribute("name",b);
hc:= xml.attribute("hair",h);
bj:= xml.str(bc);
hj:= xml.str(hc);
io.print(bj);
io.print(hj);

aa:= xml.attributes(bc,hc);
as:= xml.str(aa);
io.print(as);

--- NEW FILE: xml03.mal ---
b:= bat.new(:oid,:str);
bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");
h:= bat.new(:oid,:str);
bat.insert(h,[EMAIL PROTECTED],"brown");
bat.insert(h,[EMAIL PROTECTED],"curly dark brown");

io.print(b);

bs:= xml.xml(b);
hs:= xml.xml(h);
bc:= xml.element("name",nil:bat[:oid,:str],nil:bat[:oid,:xml],bs);
bj:= xml.str(bc);
io.print(bj);
hc:= xml.element("hair",nil:bat[:oid,:str],nil:bat[:oid,:xml],hs);
hj:= xml.str(hc);
io.print(hj);

aa:= xml.element("victim",nil:bat[:oid,:str],nil:bat[:oid,:xml],bc,hc);
as:= xml.str(aa);
io.print(as);

--- NEW FILE: xml02.stable.out ---
stdout of test 'xml02` in directory 'src/modules/mal` itself:


# 22:46:59 >  
# 22:46:59 >  Mtimeout -timeout 60  mserver5 
"--config=/ufs/mk/monet5/Linux/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs" --set 
"xquery_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/xquery_logs" --set 
mapi_open=true --set xrpc_open=true --set mapi_port=37863 --set xrpc_port=42558 
--set monet_prompt= --trace --dbname=mTests_src_modules_mal  xml02.mal
# 22:46:59 >  

# MonetDB server v5.1.0, based on kernel v1.19.0
# Serving database 'mTests_src_modules_mal'
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2007 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://gio.ins.cwi.nl:37863/
#b:= bat.new(:oid,:str);
#bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
#bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");
#h:= bat.new(:oid,:str);
#bat.insert(h,[EMAIL PROTECTED],"brown");
#bat.insert(h,[EMAIL PROTECTED],"curly dark brown");
#
#io.print(b);
#
#bc:= xml.attribute("name",b);
#hc:= xml.attribute("hair",h);
#bj:= xml.str(bc);
#hj:= xml.str(hc);
#io.print(bj);
#io.print(hj);
#
#aa:= xml.attributes(bc,hc);
#as:= xml.str(aa);
#io.print(as);
#
function user.main():void;      # 0  (main:void)
    b := bat.new(:oid,:str);    # 1 CMDBATnew 
(b:bat[:oid,:str])<-(_2:oid)(_3:str)
    bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");  # 2 BKCinsert_bun 
(_4:void)<-(b:bat[:oid,:str])(_5:oid)(_6:str)
    bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");    # 3 BKCinsert_bun 
(_7:void)<-(b:bat[:oid,:str])(_8:oid)(_9:str)
    h := bat.new(:oid,:str);    # 4 CMDBATnew 
(h:bat[:oid,:str])<-(_2:oid)(_3:str)
    bat.insert(h,[EMAIL PROTECTED],"brown");    # 5 BKCinsert_bun 
(_11:void)<-(h:bat[:oid,:str])(_5:oid)(_12:str)
    bat.insert(h,[EMAIL PROTECTED],"curly dark brown"); # 6 BKCinsert_bun 
(_13:void)<-(h:bat[:oid,:str])(_8:oid)(_14:str)
    io.print(b);        # 7 IOprint_val (_15:void)<-(b:bat[:oid,:str])
    bc := xml.attribute("name",b);      # 8 BATXMLattribute 
(bc:bat[:oid,:xml])<-(_17:str)(b:bat[:oid,:str])
    hc := xml.attribute("hair",h);      # 9 BATXMLattribute 
(hc:bat[:oid,:xml])<-(_19:str)(h:bat[:oid,:str])
    bj := xml.str(bc);  # 10 BATXMLxml2str 
(bj:bat[:oid,:str])<-(bc:bat[:oid,:xml])
    hj := xml.str(hc);  # 11 BATXMLxml2str 
(hj:bat[:oid,:str])<-(hc:bat[:oid,:xml])
    io.print(bj);       # 12 IOprint_val (_22:void)<-(bj:bat[:oid,:str])
    io.print(hj);       # 13 IOprint_val (_23:void)<-(hj:bat[:oid,:str])
    aa := xml.attributes(bc,hc);        # 14 BATXMLattributes 
(aa:bat[:oid,:xml])<-(bc:bat[:oid,:xml])(hc:bat[:oid,:xml])
    as := xml.str(aa);  # 15 BATXMLxml2str 
(as:bat[:oid,:str])<-(aa:bat[:oid,:xml])
    io.print(as);       # 16 IOprint_val (_26:void)<-(as:bat[:oid,:str])
end main;       # 17  
#---------------------------------#
# h     t                         # name
# void  str                       # type
#---------------------------------#
[ [EMAIL PROTECTED],      "Mary Ann Walker"       ]
[ [EMAIL PROTECTED],      "Annie Chapman"         ]
#-----------------------------------------#
# h     t                                 # name
# void  str                               # type
#-----------------------------------------#
[ [EMAIL PROTECTED],      " name=\"Mary Ann Walker\"\n"   ]
[ [EMAIL PROTECTED],      " name=\"Annie Chapman\"\n"     ]
#-----------------------------------------#
# h     t                                 # name
# void  str                               # type
#-----------------------------------------#
[ [EMAIL PROTECTED],      " hair=\"brown\"\n"             ]
[ [EMAIL PROTECTED],      " hair=\"curly dark brown\"\n"  ]
#-------------------------------------------------------------------------#
# h     t                                                                 # name
# void  str                                                               # type
#-------------------------------------------------------------------------#
[ [EMAIL PROTECTED],      "  name=\"Mary Ann Walker\"\n"                        
          ]
[ [EMAIL PROTECTED],      "  name=\"Mary Ann Walker\"\n  hair=\"brown\"\n"      
          ]
[ [EMAIL PROTECTED],      "  name=\"Annie Chapman\"\n"                          
          ]
[ [EMAIL PROTECTED],      "  name=\"Annie Chapman\"\n  hair=\"curly dark 
brown\"\n"       ]

# 22:46:59 >  
# 22:46:59 >  Done.
# 22:46:59 >  


--- NEW FILE: xml01.stable.out ---
stdout of test 'xml01` in directory 'src/modules/mal` itself:


# 22:46:59 >  
# 22:46:59 >  Mtimeout -timeout 60  mserver5 
"--config=/ufs/mk/monet5/Linux/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs" --set 
"xquery_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/xquery_logs" --set 
mapi_open=true --set xrpc_open=true --set mapi_port=37863 --set xrpc_port=42558 
--set monet_prompt= --trace --dbname=mTests_src_modules_mal  xml01.mal
# 22:46:59 >  

# MonetDB server v5.1.0, based on kernel v1.19.0
# Serving database 'mTests_src_modules_mal'
# Compiled for x86_64-redhat-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2007 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://gio.ins.cwi.nl:37863/
#b:= bat.new(:oid,:str);
#bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
#bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");
#
#io.print(b);
#
#bc:= xml.attribute("name",b);
#bj:= xml.str(bc);
#io.print(bj);
#
function user.main():void;      # 0  (main:void)
    b := bat.new(:oid,:str);    # 1 CMDBATnew 
(b:bat[:oid,:str])<-(_2:oid)(_3:str)
    bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");  # 2 BKCinsert_bun 
(_4:void)<-(b:bat[:oid,:str])(_5:oid)(_6:str)
    bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");    # 3 BKCinsert_bun 
(_7:void)<-(b:bat[:oid,:str])(_8:oid)(_9:str)
    io.print(b);        # 4 IOprint_val (_10:void)<-(b:bat[:oid,:str])
    bc := xml.attribute("name",b);      # 5 BATXMLattribute 
(bc:bat[:oid,:xml])<-(_12:str)(b:bat[:oid,:str])
    bj := xml.str(bc);  # 6 BATXMLxml2str 
(bj:bat[:oid,:str])<-(bc:bat[:oid,:xml])
    io.print(bj);       # 7 IOprint_val (_14:void)<-(bj:bat[:oid,:str])
end main;       # 8  
#---------------------------------#
# h     t                         # name
# void  str                       # type
#---------------------------------#
[ [EMAIL PROTECTED],      "Mary Ann Walker"       ]
[ [EMAIL PROTECTED],      "Annie Chapman"         ]
#-----------------------------------------#
# h     t                                 # name
# void  str                               # type
#-----------------------------------------#
[ [EMAIL PROTECTED],      " name=\"Mary Ann Walker\"\n"   ]
[ [EMAIL PROTECTED],      " name=\"Annie Chapman\"\n"     ]

# 22:46:59 >  
# 22:46:59 >  Done.
# 22:46:59 >  


--- NEW FILE: xml00.stable.err ---
stderr of test 'xml00` in directory 'src/modules/mal` itself:


# 22:46:59 >  
# 22:46:59 >  Mtimeout -timeout 60  mserver5 
"--config=/ufs/mk/monet5/Linux/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs" --set 
"xquery_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/xquery_logs" --set 
mapi_open=true --set xrpc_open=true --set mapi_port=37863 --set xrpc_port=42558 
--set monet_prompt= --trace --dbname=mTests_src_modules_mal  xml00.mal
# 22:46:59 >  

#warning: please don't forget to set your vault key!
#(see /ufs/mk/monet5/Linux/etc/monetdb5.conf)

# 22:46:59 >  
# 22:46:59 >  Done.
# 22:46:59 >  


--- NEW FILE: xml00.mal ---
b:= bat.new(:oid,:str);
bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");

io.print(b);

bc:= xml.comment(b);
bj:= xml.str(bc);
io.print(bj);

--- NEW FILE: xml02.stable.err ---
stderr of test 'xml02` in directory 'src/modules/mal` itself:


# 22:46:59 >  
# 22:46:59 >  Mtimeout -timeout 60  mserver5 
"--config=/ufs/mk/monet5/Linux/etc/monetdb5.conf" --debug=10 --set 
"monet_mod_path=/ufs/mk/monet5//Linux/lib/MonetDB5:/ufs/mk/monet5//Linux/lib/MonetDB5/lib:/ufs/mk/monet5//Linux/lib/MonetDB5/bin"
 --set "gdk_dbfarm=/ufs/mk/monet5//Linux/var/MonetDB5/dbfarm" --set 
"sql_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/sql_logs" --set 
"xquery_logdir=/ufs/mk/monet5//Linux/var/MonetDB5/xquery_logs" --set 
mapi_open=true --set xrpc_open=true --set mapi_port=37863 --set xrpc_port=42558 
--set monet_prompt= --trace --dbname=mTests_src_modules_mal  xml02.mal
# 22:46:59 >  

#warning: please don't forget to set your vault key!
#(see /ufs/mk/monet5/Linux/etc/monetdb5.conf)

# 22:46:59 >  
# 22:46:59 >  Done.
# 22:46:59 >  


--- NEW FILE: batxml100.mal ---
b:= bat.new(:oid,:str);
bat.insert(b,[EMAIL PROTECTED],"Mary Ann Walker");
bat.insert(b,[EMAIL PROTECTED],"Annie Chapman");

c:= bat.new(:oid,:str);
bat.insert(c,[EMAIL PROTECTED],"brown");
bat.insert(c,[EMAIL PROTECTED],"curly dark brown");

bx:= xml.xml(b);
cx:= xml.xml(c);

xp:= xml.element("person",nil:bat,nil:bat,bx);
xh:= xml.element("hair",nil:bat,nil:bat,cx);

xx:= xml.element("row",nil:bat,nil:bat,xp,xh);
xs:= xml.str(xx);
io.print(xs);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to