aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jaxup
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-01-24 08:14:07 +0800
committermat <mat@FreeBSD.org>2014-01-24 08:14:07 +0800
commitf14b8900ffa1dc5549e85743dee3077c97ebbce2 (patch)
tree82241ee8e4bdd9b144ee49763df182608762d712 /textproc/jaxup
parentd01a14300945d595f2ad1969a882f2a88b61d2de (diff)
downloadfreebsd-ports-gnome-f14b8900ffa1dc5549e85743dee3077c97ebbce2.tar.gz
freebsd-ports-gnome-f14b8900ffa1dc5549e85743dee3077c97ebbce2.tar.zst
freebsd-ports-gnome-f14b8900ffa1dc5549e85743dee3077c97ebbce2.zip
Yet another props cleanup commit.
With hat: portmgr Sponsored by: Absolight
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);
+ }
+ }
+}