abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r597951 - /incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/StreamWriterExample.java
Date Sun, 25 Nov 2007 04:05:03 GMT
Author: jmsnell
Date: Sat Nov 24 20:05:02 2007
New Revision: 597951

URL: http://svn.apache.org/viewvc?rev=597951&view=rev
Log:
No need to create QName's

Modified:
    incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/StreamWriterExample.java

Modified: incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/StreamWriterExample.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/StreamWriterExample.java?rev=597951&r1=597950&r2=597951&view=diff
==============================================================================
--- incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/StreamWriterExample.java
(original)
+++ incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/simple/StreamWriterExample.java
Sat Nov 24 20:05:02 2007
@@ -19,8 +19,6 @@
 
 import java.util.Date;
 
-import javax.xml.namespace.QName;
-
 import org.apache.abdera.Abdera;
 import org.apache.abdera.writer.StreamWriter;
 
@@ -67,8 +65,8 @@
         .writeAuthor("James", null, null)
         .writeContributor("Joe", null, null)
         .startContent("application/xml")
-          .startElement(new QName("a","b","c"))
-            .startElement(new QName("x","y","z"))
+          .startElement("a","b","c")
+            .startElement("x","y","z")
               .writeElementText("This is a test")
               .startElement("a")
                 .writeElementText("foo")



Mime
View raw message