Started modifying project structure
This commit is contained in:
parent
4e16ed01c2
commit
1e4ee37f89
566 changed files with 3340 additions and 176 deletions
23
src/main/java/writer2latex/xhtml/Debug.java
Normal file
23
src/main/java/writer2latex/xhtml/Debug.java
Normal file
|
@ -0,0 +1,23 @@
|
|||
package writer2latex.xhtml;
|
||||
|
||||
|
||||
import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Node;
|
||||
import org.w3c.dom.ls.DOMImplementationLS;
|
||||
import org.w3c.dom.ls.LSSerializer;
|
||||
|
||||
|
||||
public class Debug {
|
||||
public static void printNode(Node node){
|
||||
|
||||
|
||||
Document document = node.getOwnerDocument();
|
||||
DOMImplementationLS domImplLS = (DOMImplementationLS) document
|
||||
.getImplementation();
|
||||
LSSerializer serializer = domImplLS.createLSSerializer();
|
||||
String str = serializer.writeToString(node);
|
||||
System.out.println(str);
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue