On Dec 13, 2010, at 4:36 PM, sdumitriu (SVN) wrote:
Author: sdumitriu
Date: 2010-12-13 16:36:16 +0100 (Mon, 13 Dec 2010)
New Revision: 33363
Added:
platform/core/trunk/xwiki-xml/src/main/java/org/xwiki/xml/internal/XMLScriptService.java
platform/core/trunk/xwiki-xml/src/test/java/org/xwiki/xml/internal/XMLScriptServiceTest.java
Modified:
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/XWiki.java
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/util/Util.java
platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/web/Utils.java
platform/core/trunk/xwiki-velocity/src/main/java/org/xwiki/velocity/tools/EscapeTool.java
platform/core/trunk/xwiki-xml/pom.xml
platform/core/trunk/xwiki-xml/src/main/resources/META-INF/components.txt
Log:
XWIKI-5790: New script service for XML manipulation
Done.
XWIKI-5514: "apostrophe" character badly displayed in Internet Explorer
XWIKI-5763: Remove entity encoding from UTF-8 text in XHTML
Better fix.
[snip]
+ /**
+ * Construct a new (empty) DOM Document and return it.
+ *
+ * @return an empty DOM Document
+ */
+ public Document getDomDocument()
+ {
+ try {
+ return
DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
+ } catch (ParserConfigurationException ex) {
+ LOG.error("Cannot create DOM Documents", ex);
+ return null;
+ }
+ }
I don't like too much getXXX() naming for create methods. I prefer createXXX().
Thanks
-Vincent
[snip]