projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Safety commit before clean-up
[SXSI/xpathcomp.git]
/
XMLDocShredder.cpp
diff --git
a/XMLDocShredder.cpp
b/XMLDocShredder.cpp
index
7f7d408
..
cb70e19
100644
(file)
--- a/
XMLDocShredder.cpp
+++ b/
XMLDocShredder.cpp
@@
-102,8
+102,11
@@
void XMLDocShredder::processStartElement()
// fetch element name; this will be the full qualified name
ustring name = reader_->get_name();
bool empty = false;
// fetch element name; this will be the full qualified name
ustring name = reader_->get_name();
bool empty = false;
-
- tb->NewOpenTag(name);
+ size_t found = name.find_first_of(':');
+ if (found == ustring::npos)
+ tb->NewOpenTag(name);
+ else
+ tb->NewOpenTag(name.substr(found+1,name.length() - found - 1));
/* We must be really carefull here. calling process attributes moves
the document pointer on the last attribute, hence calling reader_->is_empty
/* We must be really carefull here. calling process attributes moves
the document pointer on the last attribute, hence calling reader_->is_empty