[sword-cvs] sword/src/utilfuns utilxml.cpp,1.2,1.3

sword@www.crosswire.org sword@www.crosswire.org
Tue, 27 May 2003 18:53:02 -0700


Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv20826/src/utilfuns

Modified Files:
	utilxml.cpp 
Log Message:


Index: utilxml.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/utilxml.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** utilxml.cpp	26 May 2003 08:36:31 -0000	1.2
--- utilxml.cpp	28 May 2003 01:53:00 -0000	1.3
***************
*** 104,107 ****
--- 104,115 ----
  
  
+ const char *XMLTag::setAttribute(const char *attribName, const char *attribValue) {
+ 	if (!parsed)
+ 		parse();
+ 	if (attribValue)
+ 		attributes[attribName] = attribValue;
+ 	else	attributes.erase(attribName);
+ }
+ 
  const char *XMLTag::toString() const {
  	SWBuf tag = "<";