cancel
Showing results for 
Search instead for 
Did you mean: 

How to read XML from alfresco repository

anilkumar_sama
Champ in-the-making
Champ in-the-making
Hi,

I have developed a small application, to read xml from my local machine and display the content on about us–>news of sample website.

Now i want to read the xml from alfresco repository.I imported my .WAR file in to alfresco web project, but when i tried to read xml it is always looking for xml in to my local drive,rather than looking in to alfresco repository.

I have given the path like "/media/releases/content/xxxxx.xml".

Could you tell me, how can i read ot from alfresco repository.

Regards,
Anil
1 REPLY 1

pmonks
Star Contributor
Star Contributor
If you're using Alfresco WCM (which it sounds like you are), then you should consider publishing the content to disk using an FSR (http://wiki.alfresco.com/wiki/FSR) then reading the content from there using direct file I/O.  In this model you would not need to deploy your web application code into the Alfresco Web Project (nor is doing so recommended).

While you can read approved content directly from the staging sandbox, that approach is not recommended as it mixes the (possibly heavy) read traffic from the website with the write traffic of your authors creating content.

Cheers,
Peter