Package nu.xom

Examples of nu.xom.NodeFactory


    // and then split into individual tests
    public void testOASISXalanConformanceSuite() 
      throws IOException, ParsingException, XSLException {
       
        Builder builder = new Builder();
        NodeFactory stripper = new StrippingFactory();
        Builder strippingBuilder = new Builder(stripper);
       
        File base = new File("data");
        base = new File(base, "oasis-xslt-testsuite");
        base = new File(base, "TESTS");
View Full Code Here


   
    public void testOASISMicrosoftConformanceSuite() 
      throws IOException, ParsingException, XSLException {
       
        Builder builder = new Builder();
        NodeFactory stripper = new StrippingFactory();
        Builder strippingBuilder = new Builder(stripper);
        File base = new File("data");
        base = new File(base, "oasis-xslt-testsuite");
        base = new File(base, "TESTS");
        File catalog = new File(base, "catalog.xml");
View Full Code Here

   
    public void testKeysPerfRepro3() 
      throws IOException, ParsingException, XSLException {
       
        Builder builder = new Builder();
        NodeFactory stripper = new StrippingFactory();
        File base = new File("data");
        base = new File(base, "oasis-xslt-testsuite");
        base = new File(base, "TESTS");

        File input = new File(base, "MSFT_CONFORMANCE_TESTS/KEYS/input.xml");
View Full Code Here

   
    public void testSorting__89749() 
      throws IOException, ParsingException, XSLException {
       
        Builder builder = new Builder();
        NodeFactory stripper = new StrippingFactory();
        File base = new File("data");
        base = new File(base, "oasis-xslt-testsuite");
        base = new File(base, "TESTS");

        File input = new File(base, "MSFT_CONFORMANCE_TESTS/Sorting/sorttest.xml");
View Full Code Here

   
    public void testDontGetNodeFactory() {
       
        Builder builder = new Builder();
        NodeFactory factory = builder.getNodeFactory();
        if (factory != null) {
            assertFalse(
              factory.getClass().getName().endsWith("NonVerifyingFactory")
            );
        }
       
    }
View Full Code Here

       
    }
   
   
    public void testGetNodeFactory() {
        NodeFactory factory = new NodeFactory();
        Builder builder = new Builder(factory);  
        assertEquals(factory, builder.getNodeFactory());
    }
View Full Code Here

   
    public void testCantAddTwoDoctypes()
      throws ParsingException, IOException {
       
        String data = "<!DOCTYPE a><a></a>";
        Builder builder = new Builder(new NodeFactory() {
           
            public Nodes makeDocType(String name, String publicID, String systemID) {
                Nodes result = new Nodes();
                result.append(new DocType(name, publicID, systemID));
                result.append(new Comment("sajdha"));
View Full Code Here

   
    public void testChangeAttributesToElements()
      throws ParsingException, IOException {
       
        String data = "<a name=\"test\" value=\"data\"/>";
        Builder builder = new Builder(new NodeFactory() {
           
            public Nodes makeAttribute(String name, String URI,
              String value, Attribute.Type type) {
                Nodes result = new Nodes();
                Element element = new Element(name, URI);
View Full Code Here

   
    public void testInsertElementsInInternalDTDSubsetViaProcessingInstruction()
      throws ParsingException, IOException {
       
        String data = "<!DOCTYPE a [<?target data?>]><a><b>data1</b><c>text</c></a>";
        Builder builder = new Builder(new NodeFactory() {
           
            public Nodes makeProcessingInstruction(String target, String data) {
                Nodes result = new Nodes();
                Element e = new Element(target);
                e.appendChild(data);
View Full Code Here

   
    public void testInsertElementsInInternalDTDSubsetViaComment()
      throws ParsingException, IOException {
       
        String data = "<!DOCTYPE a [<!--data-->]><a><b>data1</b><c>text</c></a>";
        Builder builder = new Builder(new NodeFactory() {
           
            public Nodes makeComment(String data) {
                Nodes result = new Nodes();
                Element e = new Element("comment");
                e.appendChild(data);
View Full Code Here

TOP

Related Classes of nu.xom.NodeFactory

Copyright © 2018 www.massapicom. 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.