blob: 7b3e74e8976997507879801ca34f5f2849d0c32e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package org.zwobble.mammoth.docx;
import org.zwobble.mammoth.documents.DocumentElement;
import org.zwobble.mammoth.documents.TextElement;
import org.zwobble.mammoth.xml.XmlElement;
public class BodyXml {
public static DocumentElement readBodyXmlElement(XmlElement element) {
switch (element.getName()) {
case "w:t":
return new TextElement(element.innerText());
default:
throw new UnsupportedOperationException();
}
}
}
|