code: @GET
     @Path("/{viewType}/{repoName}/{repoPath:.*}/")
     public Response getXML(@PathParam("repoName") String repoName, @PathParam("repoPath") String repoPath,
        @PathParam("viewType") String viewType, @Context UriInfo uriInfo)
     {
  
        ByteArrayOutputStream bos;
        try
        {
           ManageableRepository repo = this.repoService.getRepository(repoName);
           SessionProvider sp = sessionProviderService.getSessionProvider(null);
  
           if (sp == null)
              throw new RepositoryException("SessionProvider is not properly set. Make the application calls"
                 + "SessionProviderService.setSessionProvider(..) somewhere before ("
                 + "for instance in Servlet Filter for WEB application)");
  
           Session session = sp.getSession(workspaceName(repoPath), repo);
  
           bos = new ByteArrayOutputStream();
           if (viewType != null && (viewType.equalsIgnoreCase("system") || viewType.equalsIgnoreCase("sys")))
              session.exportSystemView(path(repoPath), bos, false, false);
           else
              session.exportDocumentView(path(repoPath), bos, false, false);
  
        }
        catch (LoginException e)
        {
           return Response.status(HTTPStatus.FORBIDDEN).entity(e.getMessage()).build();
        }
        catch (NoSuchWorkspaceException e)
        {
           return Response.serverError().entity(e.getMessage()).build();
        }
        catch (RepositoryException e)
        {
           return Response.serverError().entity(e.getMessage()).build();
        }
        catch (RepositoryConfigurationException e)
        {
           return Response.serverError().entity(e.getMessage()).build();
        }
        catch (IOException e)
        {
           return Response.serverError().entity(e.getMessage()).build();
        }
  
        return Response.ok().entity(bos.toByteArray()).type(MediaType.TEXT_XML).build();
  
     }
docs: Gives the XML representation of a given node.
  
  @param repoName - repository name
  @param repoPath - node path including workspace name
  @param viewType - either "system" or "document"
  @param uriInfo
  @return XML view of requested node
  @response
  {code}
  "xml" : the XML representation of a given node
  {code}
  @LevelAPI Unsupported