void SXSIStorageInterface::newChild(string name)
{
- _new_child++;
- tb->NewOpenTag((unsigned char*) name.c_str());
+ tb->NewOpenTag(name);
}
void SXSIStorageInterface::newText(string text)
{
- if (text.empty()) {
- _new_empty_text++;
- tb->NewEmptyText();
- }
- else {
- _new_text++;
- _length_text += text.size();
- tb->NewText((unsigned char*) text.c_str());
- }
+ tb->NewText(text);
}
void SXSIStorageInterface::nodeFinished(string name)
{
- tb->NewClosingTag((unsigned char*) name.c_str());
+ tb->NewClosingTag(name);
}