Sanket Pattekar wrote:
Hi,
Is it possible to access a XML File Input module inside a flowscript.
Is so how this can be done.
Thanks n Regards,
Sanket
Hi Sanket,
Yes that is possible. You need to import the ImportModule class in your
flowscript:
importClass(Packages.org.apache.cocoon.components.modules.input.InputModule);
Then do something like this:
var module = cocoon.getComponent(InputModule.ROLE +
"Selector").select("mymodule");
var value = module.getAttribute("/any/xpath", null, null);
Regards,
Niels ;-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]