[xsde-users] some bug fixes ( patches attached )
Erik Sjölund
erik.sjolund at gmail.com
Tue Jan 12 03:57:20 EST 2010
Hi,
I really like this software. Thanks for releasing it under an open
source license!
patch1 fixes a bug in
xsde-3.1.0/examples/cxx/hybrid/binary/xdr/driver.cxx
patch2 and patch3 fix a bug in
xsde-3.1.0/documentation/cxx/hybrid/guide/index.xhtml
in two different ways.
cheers,
Erik Sjölund
-------------- next part --------------
diff -ur xsde-3.1.0/examples/cxx/hybrid/binary/xdr/driver.cxx xsde-3.1.0.new/examples/cxx/hybrid/binary/xdr/driver.cxx
--- xsde-3.1.0/examples/cxx/hybrid/binary/xdr/driver.cxx 2009-04-06 16:37:27.000000000 +0200
+++ xsde-3.1.0.new/examples/cxx/hybrid/binary/xdr/driver.cxx 2010-01-12 09:48:22.000000000 +0100
@@ -132,7 +132,7 @@
doc_s.add_prefix ("lib", "http://www.codesynthesis.com/library");
doc_s.add_schema ("http://www.codesynthesis.com/library", "library.xsd");
- catalog_s.pre (*c);
+ catalog_s.pre (*copy);
doc_s.serialize (std::cout, xml_schema::document_simpl::pretty_print);
catalog_s.post ();
}
-------------- next part --------------
diff -ur xsde-3.1.0/documentation/cxx/hybrid/guide/index.xhtml xsde-3.1.0.new/documentation/cxx/hybrid/guide/index.xhtml
--- xsde-3.1.0/documentation/cxx/hybrid/guide/index.xhtml 2009-04-06 15:36:13.000000000 +0200
+++ xsde-3.1.0.new/documentation/cxx/hybrid/guide/index.xhtml 2010-01-12 09:45:05.000000000 +0100
@@ -976,13 +976,12 @@
hello_s.root_name ());
ostringstream ostr;
- hello_s.pre (*h);
+ hello_s.pre (h);
doc_s.serialize (ostr, xml_schema::document_simpl::pretty_print);
hello_s.post ();
- delete h;
-
- cout << ostr.c_str () << endl;
+ string s = ostr.str();
+ cout << s << endl;
}
catch (const xml_schema::serializer_exception& e)
{
-------------- next part --------------
diff -ur xsde-3.1.0/documentation/cxx/hybrid/guide/index.xhtml xsde-3.1.0.new/documentation/cxx/hybrid/guide/index.xhtml
--- xsde-3.1.0/documentation/cxx/hybrid/guide/index.xhtml 2009-04-06 15:36:13.000000000 +0200
+++ xsde-3.1.0.new/documentation/cxx/hybrid/guide/index.xhtml 2010-01-12 09:46:58.000000000 +0100
@@ -974,15 +974,12 @@
hello_saggr hello_s;
xml_schema::document_simpl doc_s (hello_s.root_serializer (),
hello_s.root_name ());
- ostringstream ostr;
- hello_s.pre (*h);
- doc_s.serialize (ostr, xml_schema::document_simpl::pretty_print);
+ hello_s.pre (h);
+ doc_s.serialize (cout, xml_schema::document_simpl::pretty_print);
hello_s.post ();
- delete h;
-
- cout << ostr.c_str () << endl;
+ cout << endl;
}
catch (const xml_schema::serializer_exception& e)
{
More information about the xsde-users
mailing list