aboutsummaryrefslogtreecommitdiff
path: root/textproc/jaxup
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2014-01-24 00:14:07 +0000
committerMathieu Arnold <mat@FreeBSD.org>2014-01-24 00:14:07 +0000
commitc7dd9d68a4474075e096a1187601c25659514d44 (patch)
tree82241ee8e4bdd9b144ee49763df182608762d712 /textproc/jaxup
parent5bfe17ef52913ffae2769003758864c59d2e4e2b (diff)
downloadports-c7dd9d68a4474075e096a1187601c25659514d44.tar.gz
ports-c7dd9d68a4474075e096a1187601c25659514d44.zip
Yet another props cleanup commit.
With hat: portmgr Sponsored by: Absolight
Notes
Notes: svn path=/head/; revision=340872
Diffstat (limited to 'textproc/jaxup')
-rw-r--r--textproc/jaxup/files/DOMXUpdater.java104
1 files changed, 52 insertions, 52 deletions
diff --git a/textproc/jaxup/files/DOMXUpdater.java b/textproc/jaxup/files/DOMXUpdater.java
index ebafa3735c4d..f789389b7702 100644
--- a/textproc/jaxup/files/DOMXUpdater.java
+++ b/textproc/jaxup/files/DOMXUpdater.java
@@ -1,52 +1,52 @@
-/**
- * DOMXUpdater: a command-line XUpdate processor.
- *
- * $FreeBSD$
- */
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-
-import org.apache.xml.serialize.OutputFormat;
-import org.apache.xml.serialize.XMLSerializer;
-import org.jaxen.dom.DocumentNavigator;
-import org.jaxup.dom.DOMDocumentUpdater;
-import org.jaxup.xupdate.XUpdate;
-import org.w3c.dom.Document;
-
-public class DOMXUpdater
-{
- public static void main(String[] args)
- {
- if (args.length != 2)
- {
- System.out.println("usage: DOMXUpdater <source document url> <XUpdate document url>");
- System.exit(1);
- }
-
- try
- {
- DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
- factory.setNamespaceAware(true);
- DocumentBuilder builder=factory.newDocumentBuilder();
-
- Document doc=builder.parse(args[0]);
- Document updateDoc=builder.parse(args[1]);
-
- XUpdate updater=new XUpdate(new DOMDocumentUpdater(), DocumentNavigator.getInstance());
- updater.runUpdate(doc, updateDoc.getDocumentElement());
-
- OutputFormat o=new OutputFormat("xml", "ISO-8859-1", true);
- o.setIndenting(true);
- o.setIndent(2);
- o.setPreserveSpace(true);
- XMLSerializer serial=new XMLSerializer(System.out, o);
- serial.serialize(doc);
- System.out.println();
- }
- catch (Exception e)
- {
- e.printStackTrace();
- System.exit(1);
- }
- }
-}
+/**
+ * DOMXUpdater: a command-line XUpdate processor.
+ *
+ * $FreeBSD$
+ */
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.apache.xml.serialize.OutputFormat;
+import org.apache.xml.serialize.XMLSerializer;
+import org.jaxen.dom.DocumentNavigator;
+import org.jaxup.dom.DOMDocumentUpdater;
+import org.jaxup.xupdate.XUpdate;
+import org.w3c.dom.Document;
+
+public class DOMXUpdater
+{
+ public static void main(String[] args)
+ {
+ if (args.length != 2)
+ {
+ System.out.println("usage: DOMXUpdater <source document url> <XUpdate document url>");
+ System.exit(1);
+ }
+
+ try
+ {
+ DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
+ factory.setNamespaceAware(true);
+ DocumentBuilder builder=factory.newDocumentBuilder();
+
+ Document doc=builder.parse(args[0]);
+ Document updateDoc=builder.parse(args[1]);
+
+ XUpdate updater=new XUpdate(new DOMDocumentUpdater(), DocumentNavigator.getInstance());
+ updater.runUpdate(doc, updateDoc.getDocumentElement());
+
+ OutputFormat o=new OutputFormat("xml", "ISO-8859-1", true);
+ o.setIndenting(true);
+ o.setIndent(2);
+ o.setPreserveSpace(true);
+ XMLSerializer serial=new XMLSerializer(System.out, o);
+ serial.serialize(doc);
+ System.out.println();
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+}