1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
--- XMLParser.C.orig Sun Apr 30 18:27:46 2006
+++ XMLParser.C Sun Apr 30 18:30:18 2006
@@ -426,6 +426,15 @@
else if (equalNoCase(tagName,"DESC")){
inDesc = true;
}
+ else if (equalNoCase(tagName,"TIME_ADDED")){
+ inAdded = true;
+ }
+ else if (equalNoCase(tagName,"TIME_VISITED")){
+ inVisited = true;
+ }
+ else if (equalNoCase(tagName,"TIME_MODIFIED")){
+ inModified = true;
+ }
else if (equalNoCase(tagName,"BOOKMARK")){
map<string, string>::const_iterator i;
string url = "";
@@ -455,6 +464,15 @@
else if (equalNoCase(tagName,"DESC")){
inDesc = false;
}
+ else if (equalNoCase(tagName,"TIME_ADDED")){
+ inAdded = false;
+ }
+ else if (equalNoCase(tagName,"TIME_VISITED")){
+ inVisited = false;
+ }
+ else if (equalNoCase(tagName,"TIME_MODIFIED")){
+ inModified = false;
+ }
else if (equalNoCase(tagName,"FOLDER")){
rtStack.pop_back();
currentReferenceTree = rtStack.back();
@@ -484,6 +502,15 @@
else if (inDesc){
currentFolder->comment = content;
}
+ else if (inAdded) {
+ currentFolder->creationTime = atoi(content.c_str());
+ }
+ else if (inVisited) {
+ currentFolder->visitTime = atoi(content.c_str());
+ }
+ else if (inModified) {
+ currentFolder->modifiedTime = atoi(content.c_str());
+ }
}
else if (inBookmark) {
if (inTitle) {
@@ -492,6 +519,15 @@
}
else if (inDesc){
currentBookmark->comment = content;
+ }
+ else if (inAdded) {
+ currentBookmark->creationTime = atoi(content.c_str());
+ }
+ else if (inVisited) {
+ currentBookmark->visitTime = atoi(content.c_str());
+ }
+ else if (inModified) {
+ currentBookmark->modifiedTime = atoi(content.c_str());
}
}
}
|