projects
/
shibboleth
/
cpp-xmltooling.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65b795f
)
Placeholder children were throwing off text node positions.
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 11 Sep 2007 15:55:09 +0000
(15:55 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 11 Sep 2007 15:55:09 +0000
(15:55 +0000)
xmltooling/io/AbstractXMLObjectMarshaller.cpp
patch
|
blob
|
history
diff --git
a/xmltooling/io/AbstractXMLObjectMarshaller.cpp
b/xmltooling/io/AbstractXMLObjectMarshaller.cpp
index
c715c26
..
500f431
100644
(file)
--- a/
xmltooling/io/AbstractXMLObjectMarshaller.cpp
+++ b/
xmltooling/io/AbstractXMLObjectMarshaller.cpp
@@
-319,7
+319,7
@@
void AbstractXMLObjectMarshaller::marshallContent(
const XMLCh* val;
unsigned int pos=0;
const list<XMLObject*>& children=getOrderedChildren();
- for (list<XMLObject*>::const_iterator i=children.begin(); i!=children.end(); ++i
, ++pos
) {
+ for (list<XMLObject*>::const_iterator i=children.begin(); i!=children.end(); ++i) {
val = getTextContent(pos);
if (val && *val)
domElement->appendChild(domElement->getOwnerDocument()->createTextNode(val));
@@
-329,6
+329,7
@@
void AbstractXMLObjectMarshaller::marshallContent(
#else
(*i)->marshall(domElement);
#endif
+ ++pos;
}
}
val = getTextContent(pos);