projects
/
SXSI
/
xpathcomp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleaned up every thing, prepared to remove deprecated interface.
[SXSI/xpathcomp.git]
/
SXSIStorageInterface.cpp
diff --git
a/SXSIStorageInterface.cpp
b/SXSIStorageInterface.cpp
index
88ed42f
..
2594bd2
100644
(file)
--- a/
SXSIStorageInterface.cpp
+++ b/
SXSIStorageInterface.cpp
@@
-13,8
+13,9
@@
SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc)
{
SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc)
{
- tree = new XMLTree();
- tree->OpenDocument(iet,sf,dtc);
+ tree = NULL;
+ tb = new XMLTreeBuilder();
+ tb ->OpenDocument(iet,sf,dtc);
}
SXSIStorageInterface::~SXSIStorageInterface()
}
SXSIStorageInterface::~SXSIStorageInterface()
@@
-23,36
+24,27
@@
SXSIStorageInterface::~SXSIStorageInterface()
void SXSIStorageInterface::newChild(string name)
{
void SXSIStorageInterface::newChild(string name)
{
- _new_child++;
- tree->NewOpenTag((unsigned char*) name.c_str());
+ tb->NewOpenTag(name);
}
void SXSIStorageInterface::newText(string text)
{
}
void SXSIStorageInterface::newText(string text)
{
- if (text.empty()) {
- _new_empty_text++;
- tree->NewEmptyText();
- }
- else {
- _new_text++;
- _length_text += text.size();
- tree->NewText((unsigned char*) text.c_str());
- }
+ tb->NewText(text);
}
void SXSIStorageInterface::nodeFinished(string name)
{
}
void SXSIStorageInterface::nodeFinished(string name)
{
- t
ree->NewClosingTag((unsigned char*) name.c_str()
);
+ t
b->NewClosingTag(name
);
}
void SXSIStorageInterface::parsingFinished()
{
}
void SXSIStorageInterface::parsingFinished()
{
- tree->CloseDocument();
+ tree
= tb
->CloseDocument();
}
}