/** * Configures the XML Parser to treat all whitespace within the given nodes as literal, meaning that * line breaks, tabs, multiple spaces, etc. will be preserved. This method takes individual XML node names * as arguments (e.g. "HD.2", or "TX.1"). * <p> * Default is <b>none</b> * </p> */ public void setXmlDisableWhitespaceTrimmingOnNodeNames(String... theKeepAsOriginalNodes) { if (theKeepAsOriginalNodes==null) { setXmlDisableWhitespaceTrimmingOnNodeNames((Set<String>)null); } else { setXmlDisableWhitespaceTrimmingOnNodeNames(new HashSet<String>(Arrays.asList(theKeepAsOriginalNodes))); } }
/** * Configures the XML Parser to treat all whitespace within the given nodes as literal, meaning that * line breaks, tabs, multiple spaces, etc. will be preserved. This method takes individual XML node names * as arguments (e.g. "HD.2", or "TX.1"). * <p> * Default is <b>none</b> * </p> */ public void setXmlDisableWhitespaceTrimmingOnNodeNames(String... theKeepAsOriginalNodes) { if (theKeepAsOriginalNodes==null) { setXmlDisableWhitespaceTrimmingOnNodeNames((Set<String>)null); } else { setXmlDisableWhitespaceTrimmingOnNodeNames(new HashSet<String>(Arrays.asList(theKeepAsOriginalNodes))); } }
/** * Sets the <i>keepAsOriginalNodes<i> * * The nodes whose names match the <i>keepAsOriginalNodes<i> will be kept as original, meaning * that no white space treaming will occur on them * * @param keepAsOriginalNodes of the nodes to be kept as original * @deprecated Use {@link ParserConfiguration#setXmlDisableWhitespaceTrimmingOnNodeNames(Set)} instead. That method works exactly the same as this one but has been renamed for a more clear meaning. */ @Deprecated() public void setKeepAsOriginalNodes(String[] keepAsOriginalNodes) { getParserConfiguration().setXmlDisableWhitespaceTrimmingOnNodeNames(keepAsOriginalNodes); }
/** * Sets the <i>keepAsOriginalNodes<i> * * The nodes whose names match the <i>keepAsOriginalNodes<i> will be kept as original, meaning * that no white space treaming will occur on them * * @param keepAsOriginalNodes of the nodes to be kept as original * @deprecated Use {@link ParserConfiguration#setXmlDisableWhitespaceTrimmingOnNodeNames(Set)} instead. That method works exactly the same as this one but has been renamed for a more clear meaning. */ @Deprecated() public void setKeepAsOriginalNodes(String[] keepAsOriginalNodes) { getParserConfiguration().setXmlDisableWhitespaceTrimmingOnNodeNames(keepAsOriginalNodes); }