cancel
Showing results for 
Search instead for 
Did you mean: 

How to read web content programmatically

arunava
Champ in-the-making
Champ in-the-making
Hi,

We are in a process of re-platforming our WCM to alfresco WCM. In alfresco we have created a web form (e.g. article) using an xsd file. The xsd file defines different properties (or attributes) of the web form. Now we have created a web project (e.g. mySite) and added the web form created above to the project. We have successfully created some web contents in side the web project using the web forms.

Now our requirement is to read the properties (or attributes)(mentioned above in bold) of those contents created inside the web project programatically. We are able to read the properties, of those content, which has beean defined by the content model, but we are not able to read/access the properties which has been defined by the xsd file for the web form.

Please let us know if there is an way to do it.

Quick reply will be very much appreciated as we are already in a stage of implementing alfresco.
1 REPLY 1

tvaughan77
Champ in-the-making
Champ in-the-making
I'm confused…you want to get programmatic access to the XSD?  Or to the XML that gets generated by the web form?

Let's say you have "article.xsd" that defines "title", "body", "date". You create a web form and populate 2 or 3 XML files like:


<article>
  <title>foo</title>
  <body>Once upon a time. . .</body>
  <date>3/13/2009</date>
</article>

What is it that you're trying to do, exactly?