X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=XMLDocShredder.cpp;h=cb70e19590eef87217c0daaa82c62f66061ca7c7;hb=7b6e25ac7c3b4e06c8386c1090bb69ae97a47143;hp=7f7d4081de4f3f9a47ba2f7a920062c689a3242f;hpb=9f227961ae2219728e4cdd56e4d4c4e7165e4306;p=SXSI%2Fxpathcomp.git diff --git a/XMLDocShredder.cpp b/XMLDocShredder.cpp index 7f7d408..cb70e19 100644 --- 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; - - 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