List of usage examples for org.jdom2 Element toString
@Override
public String toString()
This returns a String
representation of the Element
, suitable for debugging.
From source file:open.dolphin.message.MMLHelper.java
/** * soaSpec ?? pSpec? xhtml ?????/*from w w w.j av a 2 s . c o m*/ */ private void parse(String spec) { try { try (BufferedReader reader = new BufferedReader(new StringReader(spec))) { SAXBuilder docBuilder = new SAXBuilder(); Document doc = docBuilder.build(reader); Element root = doc.getRootElement(); debug(root.toString()); parseChildren(root); } } catch (IOException | JDOMException e) { e.printStackTrace(System.err); } }
From source file:open.dolphin.msg.MMLHelper.java
/** * soaSpec ?? pSpec? xhtml ?????/*from w w w. j ava2s .c o m*/ */ private void parse(String spec) { try { BufferedReader reader = new BufferedReader(new StringReader(spec)); SAXBuilder docBuilder = new SAXBuilder(); Document doc = docBuilder.build(reader); Element root = doc.getRootElement(); debug(root.toString()); parseChildren(root); reader.close(); } catch (Exception e) { e.printStackTrace(System.err); } }
From source file:se.miun.itm.input.export.PropertiesExporter.java
License:Open Source License
private String getValue(Element child) { if (child instanceof Param<?>) return child.toString(); else//w w w . j av a 2 s .c o m // assume that (child instanceof Value<?>) return child.getAttributeValue(Q.VALUE_ATTR); }