mirror of https://github.com/apache/poi.git
TIKA-3164 - add more .xsb and classes needed for TIKAs extractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888985 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cf045a86b0
commit
48d3c68270
|
@ -59,14 +59,26 @@ public final class POIXMLDocumentHandler {
|
|||
protected static void cursorRecursive(XmlObject base) {
|
||||
XmlCursor cur = base.newCursor();
|
||||
try {
|
||||
if (!cur.toFirstChild()) {
|
||||
return;
|
||||
}
|
||||
do {
|
||||
cursorRecursive(cur.getObject());
|
||||
} while (cur.toNextSibling());
|
||||
cursorRecursive(cur);
|
||||
} finally {
|
||||
cur.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private static void cursorRecursive(XmlCursor cur) {
|
||||
do {
|
||||
assertNotNull(cur.getObject());
|
||||
cur.push();
|
||||
for (boolean b = cur.toFirstAttribute(); b; b = cur.toNextAttribute()) {
|
||||
assertNotNull(cur.getObject());
|
||||
}
|
||||
cur.pop();
|
||||
cur.push();
|
||||
|
||||
if (cur.toFirstChild()) {
|
||||
cursorRecursive(cur);
|
||||
}
|
||||
cur.pop();
|
||||
} while (cur.toNextSibling());
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue