Examples of DocumentSource


Examples of org.dom4j.io.DocumentSource

        transformer = factory
            .newTransformer( new StreamSource( Activator.class.getResourceAsStream( "template.xslt" ) ) );

        // now lets style the given document
        DocumentSource source = new DocumentSource( document );
        DocumentResult result = new DocumentResult();

        transformer.transform( source, result );

        // return the transformed document
View Full Code Here

Examples of org.exoplatform.commons.xml.DocumentSource

   private void assertDescriptorCanBeLoaded(String descriptorPath) throws MalformedURLException
   {
      URL url = Thread.currentThread().getContextClassLoader().getResource(descriptorPath);
      assertNotNull("The " + descriptorPath + " can not be found", url);
      DocumentSource source = DocumentSource.create(url);
      List<SkinConfigTask> tasks = SkinConfigParser.fetchTasks(source);
      assertNotNull("There are no tasks", tasks);
      assertEquals(8, tasks.size());
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.