- From: Jean-Guilhem Rouel via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 19 Sep 2008 18:57:14 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/org/w3c/unicorn/tests
In directory hutz:/tmp/cvs-serv10640/org/w3c/unicorn/tests
Modified Files:
XMLBeansTest.java
Log Message:
MimeTypes work again for DirectInput
Index: XMLBeansTest.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/tests/XMLBeansTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- XMLBeansTest.java 29 Aug 2008 12:19:09 -0000 1.4
+++ XMLBeansTest.java 19 Sep 2008 18:57:12 -0000 1.5
@@ -19,24 +19,25 @@
public class XMLBeansTest {
public static void main(String[] args) throws XmlException, IOException {
-
+
URL url = new URL("http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fshenril.free.fr%2Fmain.css&profile=css21&usermedium=all&warning=1&lang=fr&output=ucn");
-
-
+
+
// Bind the instance to the generated XMLBeans types.
ObservationresponseDocument ObsDoc=null;
try {
- ObsDoc = ObservationresponseDocument.Factory.parse(url.openStream());
+ ObsDoc = ObservationresponseDocument.Factory.parse(new java.io.File("./target.xml"));
} catch (XmlException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
- }
+ }
ObservationresponseDocument.Observationresponse obs=ObsDoc.getObservationresponse();
// Get and print pieces of the XML instance.
-
- System.out.println(obs.getPassed());
+
+ System.out.println(obs.getResult().getErrors().getErrorlistArray(0).getErrorArray(0).getLongmessageArray(0));
+ System.out.println(obs.getResult().getErrors().getErrorlistArray(0).getErrorArray(0).getMessageArray(0));
}
-
+
}
Received on Friday, 19 September 2008 18:57:49 UTC