|
From: <vac...@us...> - 2008-12-13 13:39:58
|
Revision: 107
http://xmlwrapp.svn.sourceforge.net/xmlwrapp/?rev=107&view=rev
Author: vaclavslavik
Date: 2008-12-13 13:39:53 +0000 (Sat, 13 Dec 2008)
Log Message:
-----------
removed the need for explicit use of xml/xslt::init: use nifty counters technique to do the initialization at app startup time
Modified Paths:
--------------
trunk/ChangeLog
trunk/examples/01-tree_parsing/example.cxx
trunk/examples/02-event_parsing/example.cxx
trunk/examples/03-xml_generation/example.cxx
trunk/examples/04-xslt/example.cxx
trunk/include/xmlwrapp/attributes.h
trunk/include/xmlwrapp/document.h
trunk/include/xmlwrapp/event_parser.h
trunk/include/xmlwrapp/init.h
trunk/include/xmlwrapp/node.h
trunk/include/xmlwrapp/tree_parser.h
trunk/include/xmlwrapp/xmlwrapp.h
trunk/include/xsltwrapp/init.h
trunk/include/xsltwrapp/stylesheet.h
trunk/include/xsltwrapp/xsltwrapp.h
trunk/src/libxml/init.cxx
trunk/src/libxslt/init.cxx
trunk/tests/attributes/test_attr-01.cxx
trunk/tests/attributes/test_attr-02.cxx
trunk/tests/attributes/test_attr-03.cxx
trunk/tests/attributes/test_attr-04.cxx
trunk/tests/attributes/test_attr-05.cxx
trunk/tests/attributes/test_attr-06.cxx
trunk/tests/attributes/test_attr-07.cxx
trunk/tests/attributes/test_attr-08.cxx
trunk/tests/attributes/test_attr-09.cxx
trunk/tests/attributes/test_attr-10.cxx
trunk/tests/document/test_document-01.cxx
trunk/tests/document/test_document-02.cxx
trunk/tests/document/test_document-03.cxx
trunk/tests/document/test_document-04.cxx
trunk/tests/document/test_document-05.cxx
trunk/tests/document/test_document-06.cxx
trunk/tests/document/test_document-07.cxx
trunk/tests/document/test_document-08.cxx
trunk/tests/document/test_document-09.cxx
trunk/tests/document/test_document-10.cxx
trunk/tests/document/test_document-11.cxx
trunk/tests/document/test_document-12.cxx
trunk/tests/document/test_document-13.cxx
trunk/tests/document/test_document-14.cxx
trunk/tests/document/test_document-15.cxx
trunk/tests/document/test_document-16.cxx
trunk/tests/document/test_document-17.cxx
trunk/tests/document/test_document-18.cxx
trunk/tests/document/test_document-19.cxx
trunk/tests/document/test_document-20.cxx
trunk/tests/document/test_document-21.cxx
trunk/tests/document/test_document-22.cxx
trunk/tests/event/test_event-01.cxx
trunk/tests/event/test_event-02.cxx
trunk/tests/event/test_event-03.cxx
trunk/tests/node/test_node-01.cxx
trunk/tests/node/test_node-02a.cxx
trunk/tests/node/test_node-02b.cxx
trunk/tests/node/test_node-02c.cxx
trunk/tests/node/test_node-02d.cxx
trunk/tests/node/test_node-03a.cxx
trunk/tests/node/test_node-03b.cxx
trunk/tests/node/test_node-04a.cxx
trunk/tests/node/test_node-04b.cxx
trunk/tests/node/test_node-05a.cxx
trunk/tests/node/test_node-05b.cxx
trunk/tests/node/test_node-05c.cxx
trunk/tests/node/test_node-05d.cxx
trunk/tests/node/test_node-06.cxx
trunk/tests/node/test_node-07.cxx
trunk/tests/node/test_node-08.cxx
trunk/tests/node/test_node-09.cxx
trunk/tests/node/test_node-10.cxx
trunk/tests/node/test_node-11.cxx
trunk/tests/node/test_node-12.cxx
trunk/tests/node/test_node-13.cxx
trunk/tests/tree/test_tree-01.cxx
trunk/tests/tree/test_tree-02.cxx
trunk/tests/tree/test_tree-03.cxx
trunk/tests/tree/test_tree-04.cxx
trunk/tests/tree/test_tree-05.cxx
trunk/tests/tree/test_tree-06.cxx
trunk/tests/xslt/test_xslt-01.cxx
trunk/tests/xslt/test_xslt-02.cxx
trunk/tests/xslt/test_xslt-03.cxx
trunk/tests/xslt/test_xslt-04.cxx
trunk/tests/xslt/test_xslt-05.cxx
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/ChangeLog 2008-12-13 13:39:53 UTC (rev 107)
@@ -12,6 +12,14 @@
Input document to xslt::stylesheet::apply() is now passed as
const reference instead of non-const one.
+ It is no longer necessary to instantiate xml/xslt::init object before
+ using the library; this is now done automatically (thread safety is
+ preserved) and new code shouldn't do it. Moreover, creating multiple
+ xml/xslt::init object instances is now possible and doesn't result in
+ multiple initialization/shutdown of the library.
+
+ Configuration methods of xml/xslt::init classes are now static.
+
Version 0.5.1
Various compilation fixes.
Modified: trunk/examples/01-tree_parsing/example.cxx
===================================================================
--- trunk/examples/01-tree_parsing/example.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/examples/01-tree_parsing/example.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -51,7 +51,6 @@
try {
- xml::init init;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/examples/02-event_parsing/example.cxx
===================================================================
--- trunk/examples/02-event_parsing/example.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/examples/02-event_parsing/example.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -74,7 +74,6 @@
return 1;
}
- xml::init init;
myparser parser;
if (!parser.parse_file(argv[1])) {
Modified: trunk/examples/03-xml_generation/example.cxx
===================================================================
--- trunk/examples/03-xml_generation/example.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/examples/03-xml_generation/example.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -53,9 +53,6 @@
#include <exception>
int main (void) {
- // prepare the XML parser
- xml::init init;
-
// create a new XML document and set the root node
xml::document xmldoc("abook");
xml::node &root = xmldoc.get_root_node();
Modified: trunk/examples/04-xslt/example.cxx
===================================================================
--- trunk/examples/04-xslt/example.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/examples/04-xslt/example.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -44,9 +44,6 @@
int main (void) {
try {
- // prepare the XSLT engine and XML parser
- xslt::init init;
-
// parse the input XML document
xml::tree_parser parser("example.xml");
xml::document &doc = parser.get_document();
Modified: trunk/include/xmlwrapp/attributes.h
===================================================================
--- trunk/include/xmlwrapp/attributes.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/attributes.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -37,6 +37,9 @@
#ifndef _xmlwrapp_attributes_h_
#define _xmlwrapp_attributes_h_
+// xmlwrapp includes
+#include "xmlwrapp/init.h"
+
// standard includes
#include <cstddef>
#include <iosfwd>
Modified: trunk/include/xmlwrapp/document.h
===================================================================
--- trunk/include/xmlwrapp/document.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/document.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -38,7 +38,8 @@
#define _xmlwrapp_document_h_
// xmlwrapp includes
-#include <xmlwrapp/node.h>
+#include "xmlwrapp/init.h"
+#include "xmlwrapp/node.h"
// standard includes
#include <iosfwd>
Modified: trunk/include/xmlwrapp/event_parser.h
===================================================================
--- trunk/include/xmlwrapp/event_parser.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/event_parser.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -37,6 +37,9 @@
#ifndef _xmlwrapp_event_parser_h_
#define _xmlwrapp_event_parser_h_
+// xmlwrapp includes
+#include "xmlwrapp/init.h"
+
// standard includes
#include <cstddef>
#include <string>
Modified: trunk/include/xmlwrapp/init.h
===================================================================
--- trunk/include/xmlwrapp/init.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/init.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -40,107 +40,100 @@
namespace xml {
/**
- * The xml::init class is used to initialize the XML parser. For thread
- * safety it should be instantiated one time in the main thread before any
- * other threads use xmlwrapp. Non-threaded programs should instantiate a
- * xml::init class before using xmlwrapp as well, at least for
- * consistency.
+ * The xml::init class is used to configure the XML parser.
*
* If you want to use and of the xml::init member functions, do so before
* you start any threads or use any other part of xmlwrapp. The member
- * functions may alter global and/or static variables. In other words, this
- * class is not thread safe.
+ * functions may alter global and/or static variables and affect the behavior
+ * of subsequently created classes (and the parser in particular).
+ * In other words, this class is not thread safe.
+ *
+ * @note In xmlwrapp versions prior to 0.6.0, this class was used to initialize
+ * the library and exactly one instance had to be created before first
+ * use. This is no longer true: user code doesn't have to create any
+ * instances, but it @em can create as many instances as it wants.
**/
class init {
public:
- //####################################################################
- /**
- * Create a new xml::init object. This constructor will prepare the XML
- * parser and set some default values for the parsers global variables.
- *
- * @author Peter Jones
- **/
- //####################################################################
init (void);
-
- //####################################################################
- /**
- * Clean up the XML parser. Don't let the xml::init object go out of
- * scope before you are done using the xmlwrapp library!
- *
- * @note The destructor is intentionally not virtual, this class and
- * derived classes are meant to be used in RAII manner.
- *
- * @author Peter Jones
- **/
- //####################################################################
~init (void);
//####################################################################
/**
* This member function controls whether or not the XML parser should
* add text nodes for indenting when generating XML text output from a
- * node tree. The default, set in the xml::init constructor, is true.
+ * node tree. The default is true.
*
* @param flag True to turn on indenting, false to turn it off.
* @author Peter Jones
**/
//####################################################################
- void indent_output (bool flag);
+ static void indent_output (bool flag);
//####################################################################
/**
* This member function controls whether or not the XML parser should
- * remove ignorable whitespace around XML elements. The default, set in
- * the xml::init constructor, is false.
+ * remove ignorable whitespace around XML elements. The default
+ * is false.
*
* @param flag True to remove whitespace, false to leave alone.
* @author Peter Jones
**/
//####################################################################
- void remove_whitespace (bool flag);
+ static void remove_whitespace (bool flag);
//####################################################################
/**
* This member function controls whether or not the XML parser should
- * substitute entities while parsing. The default, set in the xml::init
- * constructor, is true.
+ * substitute entities while parsing. The default is true.
*
* @param flag True to turn on substitution, false to turn off.
* @author Peter Jones
**/
//####################################################################
- void substitute_entities (bool flag);
+ static void substitute_entities (bool flag);
//####################################################################
/**
* This member function controls whether or not the XML parser should
* load external (DTD) subsets while parsing. This will only affect the
* loading of the subsets, it does not cause files to be validated. The
- * default, set in the xml::init constructor, is true.
+ * default is true.
*
* @param flag True to turn on loading, false to turn it off.
* @author Peter Jones
**/
//####################################################################
- void load_external_subsets (bool flag);
+ static void load_external_subsets (bool flag);
//####################################################################
/**
* This member function controls whether or not the XML parser should
- * validate every XML document that is parses with its DTD. The default,
- * set in the xml::init constructor, is false.
+ * validate every XML document that is parses with its DTD. The default
+ * is false.
*
* @return flag True to turn on validation, false to turn it off.
* @author Peter Jones
**/
//####################################################################
- void validate_xml (bool flag);
+ static void validate_xml (bool flag);
private:
init (const init&);
init& operator= (const init&);
+
+ void init_library();
+ void shutdown_library();
+
+ static int ms_counter;
}; // end xml::init class
-
+
} // end xml namespace
+
+// use a "nifty counter" to ensure that any source file that uses xmlwrapp
+// will initialize the library prior to its first use
+namespace {
+ xml::init g_xmlwrapp_initializer;
+}
+
#endif
Modified: trunk/include/xmlwrapp/node.h
===================================================================
--- trunk/include/xmlwrapp/node.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/node.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -37,8 +37,11 @@
#ifndef _xmlwrapp_node_h_
#define _xmlwrapp_node_h_
+// xmlwrapp includes
+#include "xmlwrapp/init.h"
+
// hidden stuff
-#include <xmlwrapp/_cbfo.h>
+#include "xmlwrapp/_cbfo.h"
// standard includes
#include <cstddef>
Modified: trunk/include/xmlwrapp/tree_parser.h
===================================================================
--- trunk/include/xmlwrapp/tree_parser.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/tree_parser.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -37,6 +37,9 @@
#ifndef _xmlwrapp_tree_parser_h_
#define _xmlwrapp_tree_parser_h_
+// xmlwrapp includes
+#include "xmlwrapp/init.h"
+
// standard includes
#include <cstddef>
#include <string>
Modified: trunk/include/xmlwrapp/xmlwrapp.h
===================================================================
--- trunk/include/xmlwrapp/xmlwrapp.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xmlwrapp/xmlwrapp.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -33,11 +33,11 @@
#ifndef _xmlwrapp_xmlwrapp_h_
#define _xmlwrapp_xmlwrapp_h_
-#include <xmlwrapp/init.h>
-#include <xmlwrapp/node.h>
-#include <xmlwrapp/attributes.h>
-#include <xmlwrapp/document.h>
-#include <xmlwrapp/tree_parser.h>
-#include <xmlwrapp/event_parser.h>
+#include "xmlwrapp/init.h"
+#include "xmlwrapp/node.h"
+#include "xmlwrapp/attributes.h"
+#include "xmlwrapp/document.h"
+#include "xmlwrapp/tree_parser.h"
+#include "xmlwrapp/event_parser.h"
#endif
Modified: trunk/include/xsltwrapp/init.h
===================================================================
--- trunk/include/xsltwrapp/init.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xsltwrapp/init.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -38,68 +38,55 @@
#define _xsltwrapp_init_h_
// xmlwrapp includes
-#include <xmlwrapp/init.h>
+#include "xmlwrapp/init.h"
namespace xslt {
/**
- * The xslt::init class is used to initialize the XSLT engine. For thread
- * safety it should be instantiated one time in the main thread before any
- * other threads use xsltwrapp. Non-threaded programs should instantiate a
- * xslt::init class before using xsltwrapp as well, at least for
- * consistency.
+ * The xslt::init class is used to configure the XSLT engine.
*
* If you want to use any of the xslt::init member functions, do so before
* you start any threads or use any other part of xsltwrapp. The member
* functions may alter global and/or static variables. In other words, this
* class is not thread safe.
*
- * Since this class is derived from the xml::init it is not necessary to
- * use both classes. If you are going to be using xsltwrapp, you should only
- * use this class to initialize both xmlwrapp and xsltwrapp.
+ * @note In xmlwrapp versions prior to 0.6.0, this class was used to initialize
+ * the library and exactly one instance had to be created before first
+ * use. This is no longer true: user code doesn't have to create any
+ * instances, but it @em can create as many instances as it wants.
**/
class init : public xml::init {
public:
- //####################################################################
- /**
- * Create a new xslt::init object. This constructor will prepare the
- * XSLT engine parser and set some default values for the engine's
- * global variables.
- *
- * @author Peter Jones
- **/
- //####################################################################
init (void);
-
- //####################################################################
- /**
- * Clean up the XSLT engine. Don't let the xslt::init object go out of
- * scope before you are done using the xsltwrapp or xmlwrapp libraries!
- *
- * @note The destructor is intentionally not virtual, this class and
- * derived classes are meant to be used in RAII manner.
- *
- * @author Peter Jones
- **/
- //####################################################################
~init (void);
//####################################################################
/**
* This function controls whether or not the XSLT engine will process
- * XInclusions by default while parsing the stylesheet. The default, set
- * in the xslt::init constructor, is true.
+ * XInclusions by default while parsing the stylesheet. The default is
+ * true.
*
* @param flag True to enable XInclusing processing; False otherwise.
* @author Peter Jones
**/
//####################################################################
- void process_xincludes (bool flag);
+ static void process_xincludes (bool flag);
private:
init (const init&);
init& operator= (const init&);
+
+ void init_library();
+ void shutdown_library();
+
+ static int ms_counter;
}; // end xslt::init class
-
+
+// use a "nifty counter" to ensure that any source file that uses xsltwrapp
+// will initialize the library prior to its first use
+namespace {
+ xslt::init g_xsltwrapp_initializer;
+}
+
} // end xslt namespace
#endif
Modified: trunk/include/xsltwrapp/stylesheet.h
===================================================================
--- trunk/include/xsltwrapp/stylesheet.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xsltwrapp/stylesheet.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -38,7 +38,8 @@
#define _xsltwrapp_stylesheet_h_
// xmlwrapp includes
-#include <xmlwrapp/document.h>
+#include "xsltwrapp/init.h"
+#include "xmlwrapp/document.h"
// standard includes
#include <map>
Modified: trunk/include/xsltwrapp/xsltwrapp.h
===================================================================
--- trunk/include/xsltwrapp/xsltwrapp.h 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/include/xsltwrapp/xsltwrapp.h 2008-12-13 13:39:53 UTC (rev 107)
@@ -33,8 +33,8 @@
#ifndef _xsltwrapp_xsltwrapp_h_
#define _xsltwrapp_xsltwrapp_h_
-#include <xmlwrapp/xmlwrapp.h>
-#include <xsltwrapp/init.h>
-#include <xsltwrapp/stylesheet.h>
+#include "xmlwrapp/xmlwrapp.h"
+#include "xsltwrapp/init.h"
+#include "xsltwrapp/stylesheet.h"
#endif
Modified: trunk/src/libxml/init.cxx
===================================================================
--- trunk/src/libxml/init.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/src/libxml/init.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,19 @@
extern "C" void xml_error (void *, const char*, ...);
}
//####################################################################
+int xml::init::ms_counter = 0;
+//####################################################################
xml::init::init (void) {
+ if ( ms_counter++ == 0 )
+ init_library();
+}
+//####################################################################
+xml::init::~init (void) {
+ if ( --ms_counter == 0 )
+ shutdown_library();
+}
+//####################################################################
+void xml::init::init_library() {
// set some libxml global variables
indent_output(true);
remove_whitespace(false);
@@ -62,7 +74,7 @@
xmlInitParser();
}
//####################################################################
-xml::init::~init (void) {
+void xml::init::shutdown_library() {
xmlCleanupParser();
}
//####################################################################
Modified: trunk/src/libxslt/init.cxx
===================================================================
--- trunk/src/libxslt/init.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/src/libxslt/init.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -49,7 +49,19 @@
extern "C" void xslt_error (void *, const char*, ...);
}
//####################################################################
+int xslt::init::ms_counter = 0;
+//####################################################################
xslt::init::init (void) {
+ if ( ms_counter++ == 0 )
+ init_library();
+}
+//####################################################################
+xslt::init::~init (void) {
+ if ( --ms_counter == 0 )
+ shutdown_library();
+}
+//####################################################################
+void xslt::init::init_library() {
xsltInit();
// set some defautls
@@ -63,7 +75,7 @@
exsltRegisterAll();
}
//####################################################################
-xslt::init::~init (void) {
+void xslt::init::shutdown_library() {
xsltCleanupGlobals();
}
//####################################################################
Modified: trunk/tests/attributes/test_attr-01.cxx
===================================================================
--- trunk/tests/attributes/test_attr-01.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-01.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -42,7 +42,6 @@
if (argc != 2) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
const xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-02.cxx
===================================================================
--- trunk/tests/attributes/test_attr-02.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-02.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 2) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-03.cxx
===================================================================
--- trunk/tests/attributes/test_attr-03.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-03.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 3) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
const xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-04.cxx
===================================================================
--- trunk/tests/attributes/test_attr-04.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-04.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 3) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-05.cxx
===================================================================
--- trunk/tests/attributes/test_attr-05.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-05.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 3) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-06.cxx
===================================================================
--- trunk/tests/attributes/test_attr-06.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-06.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 2) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-07.cxx
===================================================================
--- trunk/tests/attributes/test_attr-07.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-07.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 2) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::attributes &attrs = parser.get_document().get_root_node().get_attributes();
Modified: trunk/tests/attributes/test_attr-08.cxx
===================================================================
--- trunk/tests/attributes/test_attr-08.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-08.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 2) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
/* MAKE A COPY! */
Modified: trunk/tests/attributes/test_attr-09.cxx
===================================================================
--- trunk/tests/attributes/test_attr-09.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-09.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
if (argc != 3) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
if (parser.get_document().has_internal_subset() && !parser.get_document().validate()) {
Modified: trunk/tests/attributes/test_attr-10.cxx
===================================================================
--- trunk/tests/attributes/test_attr-10.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/attributes/test_attr-10.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -42,7 +42,6 @@
if (argc != 3) return 1;
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
if (parser.get_document().has_internal_subset() && !parser.get_document().validate()) {
Modified: trunk/tests/document/test_document-01.cxx
===================================================================
--- trunk/tests/document/test_document-01.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-01.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,7 @@
}
try {
- xml::init xml; xml.substitute_entities(false);
+ xml::init::substitute_entities(false);
xml::tree_parser parser(argv[1]);
xml::node::iterator i=parser.get_document().begin(), end=parser.get_document().end();
Modified: trunk/tests/document/test_document-02.cxx
===================================================================
--- trunk/tests/document/test_document-02.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-02.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
int main (void) {
try {
- xml::init xml;
xml::document doc;
std::cout << doc;
Modified: trunk/tests/document/test_document-03.cxx
===================================================================
--- trunk/tests/document/test_document-03.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-03.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -42,7 +42,6 @@
int main (void) {
try {
- xml::init xml;
xml::document doc("root");
std::cout << doc;
Modified: trunk/tests/document/test_document-04.cxx
===================================================================
--- trunk/tests/document/test_document-04.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-04.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
int main (void) {
try {
- xml::init xml;
xml::node n("root", "pcdata");
xml::document doc(n);
std::cout << doc;
Modified: trunk/tests/document/test_document-05.cxx
===================================================================
--- trunk/tests/document/test_document-05.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-05.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
int main (void) {
try {
- xml::init xml;
xml::node n("root", "pcdata");
xml::document doc(n);
Modified: trunk/tests/document/test_document-06.cxx
===================================================================
--- trunk/tests/document/test_document-06.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-06.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
int main (void) {
try {
- xml::init xml;
xml::node n("root", "pcdata");
xml::document doc(n);
xml::document doc_copy;
Modified: trunk/tests/document/test_document-07.cxx
===================================================================
--- trunk/tests/document/test_document-07.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-07.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,7 +41,6 @@
int main (void) {
try {
- xml::init xml;
xml::node n("root", "pcdata");
xml::document doc(n);
std::cout << doc.get_root_node();
Modified: trunk/tests/document/test_document-08.cxx
===================================================================
--- trunk/tests/document/test_document-08.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-08.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -41,8 +41,6 @@
int main (void) {
try {
- xml::init xml;
-
xml::node n("root", "pcdata");
xml::document doc;
Modified: trunk/tests/document/test_document-09.cxx
===================================================================
--- trunk/tests/document/test_document-09.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-09.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
std::cout << parser.get_document().get_version() << "\n";
Modified: trunk/tests/document/test_document-10.cxx
===================================================================
--- trunk/tests/document/test_document-10.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-10.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
parser.get_document().set_version("1.1");
std::cout << parser.get_document();
Modified: trunk/tests/document/test_document-11.cxx
===================================================================
--- trunk/tests/document/test_document-11.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-11.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
std::cout << parser.get_document().get_encoding() << "\n";
Modified: trunk/tests/document/test_document-12.cxx
===================================================================
--- trunk/tests/document/test_document-12.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-12.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
parser.get_document().set_encoding("UTF-8");
std::cout << parser.get_document();
Modified: trunk/tests/document/test_document-13.cxx
===================================================================
--- trunk/tests/document/test_document-13.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-13.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -44,7 +44,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
bool sa = parser.get_document().get_is_standalone();
Modified: trunk/tests/document/test_document-14.cxx
===================================================================
--- trunk/tests/document/test_document-14.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-14.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
std::cout << parser.get_document().process_xinclude() << "\n";
std::cout << parser.get_document();
Modified: trunk/tests/document/test_document-15.cxx
===================================================================
--- trunk/tests/document/test_document-15.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-15.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -44,8 +44,6 @@
try {
- xml::init xml;
-
xml::document doc("root");
doc.get_root_node().push_back(xml::node("child"));
doc.save_to_file(argv[1], std::atoi(argv[2]));
Modified: trunk/tests/document/test_document-16.cxx
===================================================================
--- trunk/tests/document/test_document-16.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-16.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -42,8 +42,6 @@
int main (void) {
try {
- xml::init xml;
-
xml::document doc_01("root");
std::cout << doc_01.size() << "\n";
doc_01.push_back(xml::node(xml::node::comment("This is a comment")));
Modified: trunk/tests/document/test_document-17.cxx
===================================================================
--- trunk/tests/document/test_document-17.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-17.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -42,7 +42,6 @@
int main (void) {
try {
- xml::init xml;
xml::document doc("root");
doc.push_back(xml::node(xml::node::comment(" Comment From push_back ")));
Modified: trunk/tests/document/test_document-18.cxx
===================================================================
--- trunk/tests/document/test_document-18.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-18.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
try {
- xml::init xml;
xml::document doc("root");
switch (*argv[1]) {
Modified: trunk/tests/document/test_document-19.cxx
===================================================================
--- trunk/tests/document/test_document-19.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-19.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
try {
- xml::init xml;
xml::document doc("root");
xml::node::iterator n(doc.insert(xml::node(xml::node::comment(" To Be Replaced "))));
Modified: trunk/tests/document/test_document-20.cxx
===================================================================
--- trunk/tests/document/test_document-20.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-20.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
try {
- xml::init xml;
xml::document doc("root");
xml::node::iterator n(doc.insert(xml::node(xml::node::comment(" To Be Replaced "))));
Modified: trunk/tests/document/test_document-21.cxx
===================================================================
--- trunk/tests/document/test_document-21.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-21.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -42,7 +42,6 @@
int main (void) {
try {
- xml::init xml;
xml::document doc("root");
doc.push_back(xml::node(xml::node::comment(" Comment from push_back ")));
Modified: trunk/tests/document/test_document-22.cxx
===================================================================
--- trunk/tests/document/test_document-22.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/document/test_document-22.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -43,7 +43,6 @@
int main (void) {
try {
- xml::init xml;
xml::document doc("root");
doc.push_back(xml::node(xml::node::comment(" Comment from push_back ")));
Modified: trunk/tests/event/test_event-01.cxx
===================================================================
--- trunk/tests/event/test_event-01.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/event/test_event-01.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -80,7 +80,6 @@
return 1;
}
- xml::init init;
test_parser parser;
if (!parser.parse_file(argv[1])) {
Modified: trunk/tests/event/test_event-02.cxx
===================================================================
--- trunk/tests/event/test_event-02.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/event/test_event-02.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -118,7 +118,6 @@
return 1;
}
- xml::init init;
test_parser parser(argv[2],argc == 4);
bool status = parser.parse_file(argv[1]);
std::cout << "\n";
Modified: trunk/tests/event/test_event-03.cxx
===================================================================
--- trunk/tests/event/test_event-03.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/event/test_event-03.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -64,7 +64,6 @@
return 1;
}
- xml::init init;
test_parser parser;
if (!parser.parse_file(argv[1])) return 1;
return 0;
Modified: trunk/tests/node/test_node-01.cxx
===================================================================
--- trunk/tests/node/test_node-01.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-01.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -39,8 +39,6 @@
#include <iostream>
int main (void) {
- xml::init xml;
-
xml::node root_node("root");
xml::node one("count", "one");
xml::node two("count", "two");
Modified: trunk/tests/node/test_node-02a.cxx
===================================================================
--- trunk/tests/node/test_node-02a.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-02a.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-02b.cxx
===================================================================
--- trunk/tests/node/test_node-02b.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-02b.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
const xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-02c.cxx
===================================================================
--- trunk/tests/node/test_node-02c.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-02c.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-02d.cxx
===================================================================
--- trunk/tests/node/test_node-02d.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-02d.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
const xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-03a.cxx
===================================================================
--- trunk/tests/node/test_node-03a.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-03a.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-03b.cxx
===================================================================
--- trunk/tests/node/test_node-03b.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-03b.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-04a.cxx
===================================================================
--- trunk/tests/node/test_node-04a.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-04a.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-04b.cxx
===================================================================
--- trunk/tests/node/test_node-04b.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-04b.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-05a.cxx
===================================================================
--- trunk/tests/node/test_node-05a.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-05a.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-05b.cxx
===================================================================
--- trunk/tests/node/test_node-05b.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-05b.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-05c.cxx
===================================================================
--- trunk/tests/node/test_node-05c.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-05c.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-05d.cxx
===================================================================
--- trunk/tests/node/test_node-05d.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-05d.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-06.cxx
===================================================================
--- trunk/tests/node/test_node-06.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-06.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,7 @@
}
try {
- xml::init xml; xml.substitute_entities(false);
+ xml::init::substitute_entities(false);
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-07.cxx
===================================================================
--- trunk/tests/node/test_node-07.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-07.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,7 @@
}
try {
- xml::init xml; xml.remove_whitespace(true);
+ xml::init::remove_whitespace(true);
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-08.cxx
===================================================================
--- trunk/tests/node/test_node-08.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-08.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -57,7 +57,7 @@
}
try {
- xml::init xml; xml.remove_whitespace(true);
+ xml::init::remove_whitespace(true);
xml::tree_parser parser(argv[1]);
xml::node &root = parser.get_document().get_root_node();
Modified: trunk/tests/node/test_node-09.cxx
===================================================================
--- trunk/tests/node/test_node-09.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-09.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::node n(xml::node::cdata("This is a CDATA section"));
std::cout << n;
} catch (const std::exception &e) {
Modified: trunk/tests/node/test_node-10.cxx
===================================================================
--- trunk/tests/node/test_node-10.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-10.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::node n(xml::node::comment("This is an XML comment"));
std::cout << n;
} catch (const std::exception &e) {
Modified: trunk/tests/node/test_node-11.cxx
===================================================================
--- trunk/tests/node/test_node-11.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-11.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,7 +45,6 @@
}
try {
- xml::init xml;
xml::node n(xml::node::pi("xslt", "stylesheet=\"test.xsl\""));
std::cout << n;
} catch (const std::exception &e) {
Modified: trunk/tests/node/test_node-12.cxx
===================================================================
--- trunk/tests/node/test_node-12.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-12.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,8 +45,6 @@
}
try {
- xml::init xml;
-
xml::node n("root");
std::cout << n.size() << "\n";
Modified: trunk/tests/node/test_node-13.cxx
===================================================================
--- trunk/tests/node/test_node-13.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/node/test_node-13.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -45,8 +45,6 @@
}
try {
- xml::init xml;
-
xml::node n("root");
std::cout << n.empty() << "\n";
Modified: trunk/tests/tree/test_tree-01.cxx
===================================================================
--- trunk/tests/tree/test_tree-01.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/tree/test_tree-01.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -49,7 +49,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
dump_node(parser.get_document().get_root_node());
Modified: trunk/tests/tree/test_tree-02.cxx
===================================================================
--- trunk/tests/tree/test_tree-02.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/tree/test_tree-02.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1]);
} catch (std::exception &e) {
Modified: trunk/tests/tree/test_tree-03.cxx
===================================================================
--- trunk/tests/tree/test_tree-03.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/tree/test_tree-03.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,6 @@
try {
- xml::init xml;
xml::tree_parser parser(argv[1], false);
if (!parser) {
Modified: trunk/tests/tree/test_tree-04.cxx
===================================================================
--- trunk/tests/tree/test_tree-04.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/tree/test_tree-04.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -51,7 +51,6 @@
try {
- xml::init xml;
std::string xmldata = argv[1];
xml::tree_parser parser(xmldata.c_str(), xmldata.size());
dump_node(parser.get_document().get_root_node());
Modified: trunk/tests/tree/test_tree-05.cxx
===================================================================
--- trunk/tests/tree/test_tree-05.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/tree/test_tree-05.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -48,7 +48,6 @@
try {
- xml::init xml;
std::string xmldata = argv[1];
xml::tree_parser parser(xmldata.c_str(), xmldata.size());
Modified: trunk/tests/tree/test_tree-06.cxx
===================================================================
--- trunk/tests/tree/test_tree-06.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/tree/test_tree-06.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -48,7 +48,6 @@
try {
- xml::init xml;
std::string xmldata = argv[1];
xml::tree_parser parser(xmldata.c_str(), xmldata.size(), false);
Modified: trunk/tests/xslt/test_xslt-01.cxx
===================================================================
--- trunk/tests/xslt/test_xslt-01.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/xslt/test_xslt-01.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -46,7 +46,6 @@
try {
- xslt::init init;
xslt::stylesheet style(argv[1]);
} catch (std::exception &e) {
Modified: trunk/tests/xslt/test_xslt-02.cxx
===================================================================
--- trunk/tests/xslt/test_xslt-02.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/xslt/test_xslt-02.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,6 @@
try {
- xslt::init init;
xslt::stylesheet style(argv[1]);
xml::tree_parser parser(argv[2]);
xml::document result;
Modified: trunk/tests/xslt/test_xslt-03.cxx
===================================================================
--- trunk/tests/xslt/test_xslt-03.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/xslt/test_xslt-03.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,6 @@
try {
- xslt::init init;
xslt::stylesheet style(argv[1]);
xml::tree_parser parser(argv[2]);
xml::document result;
Modified: trunk/tests/xslt/test_xslt-04.cxx
===================================================================
--- trunk/tests/xslt/test_xslt-04.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/xslt/test_xslt-04.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,6 @@
try {
- xslt::init init;
xslt::stylesheet style(argv[1]);
xml::tree_parser parser(argv[2]);
Modified: trunk/tests/xslt/test_xslt-05.cxx
===================================================================
--- trunk/tests/xslt/test_xslt-05.cxx 2008-12-12 23:58:44 UTC (rev 106)
+++ trunk/tests/xslt/test_xslt-05.cxx 2008-12-13 13:39:53 UTC (rev 107)
@@ -47,7 +47,6 @@
try {
- xslt::init init;
xslt::stylesheet style(argv[1]);
xml::tree_parser parser(argv[2]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|