Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-176

JCRTest.java (First Steps example code): to few parameters in session.importXML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • docs
    • None

    Description

      In the code on the First Steps page:

      if (!rn.hasNode("importxml"))

      { System.out.println("importing xml"); Node n=rn.addNode("importxml", "nt:unstructured"); session.importXML("/importxml", new FileInputStream("repotest/test.xml")); session.save(); }

      The importXML needs a third parameter, compare to:

      http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/Session.html

      This prevents the code from the First Steps page from compiling.

      Attachments

        Issue Links

          Activity

            People

              mreutegg Marcel Reutegger
              tschlabach@apache.org Torsten Schlabach
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: