Why can't export the whole page conent using Session exportSystemView method | Community
Skip to main content
October 16, 2015
Solved

Why can't export the whole page conent using Session exportSystemView method

  • October 16, 2015
  • 3 replies
  • 825 views
private static void exportSystemView(Session session, Node page) { try { // page at "content/geometrixx/en/services/banking"; File outputFile = new File(page.getName() + ".xml"); FileOutputStream out = new FileOutputStream(outputFile); session.exportSystemView(page.getPath(), out, false, false); } catch (PathNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (RepositoryException e) { // TODO Auto-generated catch block e.printStackTrace(); } }

After run above code, and open the xml file, find no information export with folowing mark part:

[img]service.jpg[/img]

Anyone could know how to deal that?

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by JustinEd3

That text is pulled in by reference. If you look at the generated XML, you should see something like this:

<sv:node sv:name="reference"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>nt:unstructured</sv:value> </sv:property> <sv:property sv:name="jcr:created" sv:type="Date"> <sv:value>2011-10-03T15:34:29.604+02:00</sv:value> </sv:property> <sv:property sv:name="jcr:createdBy" sv:type="String"> <sv:value>admin</sv:value> </sv:property> <sv:property sv:name="jcr:lastModified" sv:type="Date"> <sv:value>2011-10-03T15:36:07.429+02:00</sv:value> </sv:property> <sv:property sv:name="jcr:lastModifiedBy" sv:type="String"> <sv:value>admin</sv:value> </sv:property> <sv:property sv:name="path" sv:type="String"> <sv:value> /content/dam/geometrixx/documents/GeoMetrixx_Banking.indd/jcr:content/renditions/page/jcr:content/par/text_u167 </sv:value> </sv:property> <sv:property sv:name="sling:resourceType" sv:type="String"> <sv:value>foundation/components/reference</sv:value> </sv:property> </sv:node>

which corresponds to that block of text.

3 replies

Adobe Employee
October 16, 2015

Sure, you can get an export of /content/dam/geometrixx/documents/GeoMetrixx_Banking.indd/jcr:content/renditions/page/jcr:content/par/text_u167

October 16, 2015

Hi justin,  thanks for your reply and i find the same reference part in the generated xml at my computer.

But is there any way to get that block of text with JCR API? Because i need to get the text then send to another server to translate.

JustinEd3Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

That text is pulled in by reference. If you look at the generated XML, you should see something like this:

<sv:node sv:name="reference"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>nt:unstructured</sv:value> </sv:property> <sv:property sv:name="jcr:created" sv:type="Date"> <sv:value>2011-10-03T15:34:29.604+02:00</sv:value> </sv:property> <sv:property sv:name="jcr:createdBy" sv:type="String"> <sv:value>admin</sv:value> </sv:property> <sv:property sv:name="jcr:lastModified" sv:type="Date"> <sv:value>2011-10-03T15:36:07.429+02:00</sv:value> </sv:property> <sv:property sv:name="jcr:lastModifiedBy" sv:type="String"> <sv:value>admin</sv:value> </sv:property> <sv:property sv:name="path" sv:type="String"> <sv:value> /content/dam/geometrixx/documents/GeoMetrixx_Banking.indd/jcr:content/renditions/page/jcr:content/par/text_u167 </sv:value> </sv:property> <sv:property sv:name="sling:resourceType" sv:type="String"> <sv:value>foundation/components/reference</sv:value> </sv:property> </sv:node>

which corresponds to that block of text.