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

Modified Files:
        xml.mx 
Log Message:
Hooks for a few more functions that probably
are easiest the implement using libxml.


Index: xml.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/modules/atoms/xml.mx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- xml.mx      24 Aug 2007 19:00:47 -0000      1.7
+++ xml.mx      25 Aug 2007 18:03:31 -0000      1.8
@@ -43,6 +43,15 @@
 address XMLpi
 comment "Call the processing instruction";
 
+command document(val:str):xml
+address XMLdocument
+comment "Check the value for compliance as XML document";
+
+command content(val:str):xml
+address XMLcontent
+comment "Check the value for compliance as content, i.e.
+it may contain multiple roots and character data.";
+
 command root(val:xml, version:str, standalone:str):xml
 address XMLroot
 comment "Contruct the root nodes";
@@ -100,6 +109,8 @@
 
 xml_export str XMLxml2str(str *s, xml *x);
 xml_export str XMLstr2xml(xml *x, str *s);
+xml_export str XMLdocument(xml *x, str *s);
+xml_export str XMLcontent(xml *x, str *s);
 xml_export str XMLisdcoument(bit *x, str *s);
 xml_export str XMLcomment(xml *x, str *s);
 xml_export str XMLpi(xml *x, str *nme, str *s);
@@ -154,6 +165,20 @@
 }
 
 str
+XMLdocument(xml *x, str *val){
+       /* call the libxml2 library to perform the test */
+       *x= (str) GDKstrdup(*val);
+       return MAL_SUCCEED;
+}
+
+str
+XMLcontent(xml *x, str *val){
+       /* call the libxml2 library to perform the test */
+       *x= (str) GDKstrdup(*val);
+       return MAL_SUCCEED;
+}
+
+str
 XMLisdocument(bit *x, str *s){
        (void) x;
        (void) s;


-------------------------------------------------------------------------
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