[sword-cvs] sword/tests xmltest.cpp,1.1,1.2

sword@www.crosswire.org sword@www.crosswire.org
Wed, 25 Jun 2003 15:09:17 -0700


Update of /usr/local/cvsroot/sword/tests
In directory www:/tmp/cvs-serv25077/tests

Modified Files:
	xmltest.cpp 
Log Message:
Fixed bug in XMLTag where isEmpty was not raised if no space before / like <p/>



Index: xmltest.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/tests/xmltest.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** xmltest.cpp	26 May 2003 04:32:45 -0000	1.1
--- xmltest.cpp	25 Jun 2003 22:09:15 -0000	1.2
***************
*** 7,11 ****
  int main(int argc, char **argv) {
  	XMLTag x((argc > 1) ? argv[1] : "<verse osisID=\"John.1.1\" type=\"test type\" yeah = \"stuff\" />");
! 	x.setAttribute("newOne", "oneValue");
  	cout << x.toString() << "\n";
  	cout << "Tag name: [" << x.getName() << "]\n";
--- 7,11 ----
  int main(int argc, char **argv) {
  	XMLTag x((argc > 1) ? argv[1] : "<verse osisID=\"John.1.1\" type=\"test type\" yeah = \"stuff\" />");
! //	x.setAttribute("newOne", "oneValue");
  	cout << x.toString() << "\n";
  	cout << "Tag name: [" << x.getName() << "]\n";