You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Gaurav Kalia <ga...@techblue.co.uk> on 2011/05/05 10:40:40 UTC
Reading Third Party XML Using Generator
Hi All
I want to read an XML which is a part of some other application. I have
the HTTP URL for the XML document.
What i want to achieve here is -- Read the XML and want to add the
content to my own application.
Can anyone please suggest me how can i do this.
Thanks in advance.
Regards
Gaurav
--
Gaurav
Web Development
Techblue Softwares& Technology Blueprint Ltd
T : 08450047142 Extn: 5102
E : gaurav.kalia@techblue.co.uk
W : www.techblue.co.in
www.technologyblueprint.co.uk
Confidentiality Notice
The contents of this email are confidential and may be privileged, and
are intended only for the use of the person or company named herein. Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Techblue software or Technology Blueprint
Limited.
If you are not the intended recipient of this email or a person
responsible for delivering it to the intended recipient, you are hereby
notified that any distribution, copying or dissemination of the
information herein is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Reading Third Party XML Using Generator
Posted by Gaurav Kalia <ga...@techblue.co.uk>.
Hi Andreas / Florent
Thanks for the help. I was getting connection timed out exception and
its resolved now.
Regards
Gaurav
On Friday 06 May 2011 05:45 PM, florent andré wrote:
> Hi,
>
> Use the include / cinclude transformer :
> http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html
>
> It's work very well and you have many configuration options.
>
> HTH.
>
> On 05/06/2011 10:16 AM, Brijesh wrote:
>> Hi All
>>
>> I have also tried and i can not see anything in the logs.
>>
>> Below is the match pattern
>>
>> <map:match pattern="test.html">
>> <map:generate src="http://abc.xyz.co.uk/test.xml"/>
>> <map:serialize type="xml"/>
>> </map:match>
>>
>> Please anyone give the solution.
>>
>> Regards
>> Brijesh
>>
>> On Thursday 05 May 2011 08:51 PM, Gaurav Kalia wrote:
>>>> a) Use the XML in pipelines – easy:
>>>> <map:generate src="http://…"/>
>>>
>>> I have tried this but i did not get anything. I have checked the logs
>>> as well and i can not see any exception.
>>>
>>> May be i am missing something, will recheck and try to debug.
>>>
>>> Regards
>>> Gaurav
>>>
>>>
>>> On Thursday 05 May 2011 07:09 PM, Andreas Hartmann wrote:
>>>> Hi Gaurav,
>>>>
>>>> Am 05.05.11 10:40, schrieb Gaurav Kalia:
>>>>> I want to read an XML which is a part of some other application. I
>>>>> have
>>>>> the HTTP URL for the XML document.
>>>>>
>>>>> What i want to achieve here is -- Read the XML and want to add the
>>>>> content to my own application.
>>>>
>>>> what exactly do you want to achieve?
>>>>
>>>> a) Use the XML in pipelines – easy:
>>>> <map:generate src="http://…"/>
>>>>
>>>> b) Use the XML as if it was a Lenya document:
>>>> For this purpose I would consider creating a custom resource type
>>>> which stores only the external URI and includes the content using the
>>>> Cocoon include transformer.
>>>>
>>>> HTH,
>>>>
>>>> -- Andreas
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>> --
>> Thanks & Regards
>>
>> Brijesh Mishra
>> Web Developer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
--
Gaurav
Web Development
Techblue Softwares& Technology Blueprint Ltd
T : 08450047142 Extn: 5102
E : gaurav.kalia@techblue.co.uk
W : www.techblue.co.in
www.technologyblueprint.co.uk
Confidentiality Notice
The contents of this email are confidential and may be privileged, and
are intended only for the use of the person or company named herein. Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Techblue software or Technology Blueprint
Limited.
If you are not the intended recipient of this email or a person
responsible for delivering it to the intended recipient, you are hereby
notified that any distribution, copying or dissemination of the
information herein is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Reading Third Party XML Using Generator
Posted by florent andré <fl...@4sengines.com>.
Hi,
Use the include / cinclude transformer :
http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html
It's work very well and you have many configuration options.
HTH.
On 05/06/2011 10:16 AM, Brijesh wrote:
> Hi All
>
> I have also tried and i can not see anything in the logs.
>
> Below is the match pattern
>
> <map:match pattern="test.html">
> <map:generate src="http://abc.xyz.co.uk/test.xml"/>
> <map:serialize type="xml"/>
> </map:match>
>
> Please anyone give the solution.
>
> Regards
> Brijesh
>
> On Thursday 05 May 2011 08:51 PM, Gaurav Kalia wrote:
>>> a) Use the XML in pipelines – easy:
>>> <map:generate src="http://…"/>
>>
>> I have tried this but i did not get anything. I have checked the logs
>> as well and i can not see any exception.
>>
>> May be i am missing something, will recheck and try to debug.
>>
>> Regards
>> Gaurav
>>
>>
>> On Thursday 05 May 2011 07:09 PM, Andreas Hartmann wrote:
>>> Hi Gaurav,
>>>
>>> Am 05.05.11 10:40, schrieb Gaurav Kalia:
>>>> I want to read an XML which is a part of some other application. I have
>>>> the HTTP URL for the XML document.
>>>>
>>>> What i want to achieve here is -- Read the XML and want to add the
>>>> content to my own application.
>>>
>>> what exactly do you want to achieve?
>>>
>>> a) Use the XML in pipelines – easy:
>>> <map:generate src="http://…"/>
>>>
>>> b) Use the XML as if it was a Lenya document:
>>> For this purpose I would consider creating a custom resource type
>>> which stores only the external URI and includes the content using the
>>> Cocoon include transformer.
>>>
>>> HTH,
>>>
>>> -- Andreas
>>>
>>>
>>>
>>
>>
>
>
> --
> Thanks & Regards
>
> Brijesh Mishra
> Web Developer
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Reading Third Party XML Using Generator
Posted by Brijesh <br...@techblue.co.uk>.
Hi All
I have also tried and i can not see anything in the logs.
Below is the match pattern
<map:match pattern="test.html">
<map:generate src="http://abc.xyz.co.uk/test.xml"/>
<map:serialize type="xml"/>
</map:match>
Please anyone give the solution.
Regards
Brijesh
On Thursday 05 May 2011 08:51 PM, Gaurav Kalia wrote:
>> a) Use the XML in pipelines – easy:
>> <map:generate src="http://…"/>
>
> I have tried this but i did not get anything. I have checked the logs
> as well and i can not see any exception.
>
> May be i am missing something, will recheck and try to debug.
>
> Regards
> Gaurav
>
>
> On Thursday 05 May 2011 07:09 PM, Andreas Hartmann wrote:
>> Hi Gaurav,
>>
>> Am 05.05.11 10:40, schrieb Gaurav Kalia:
>>> I want to read an XML which is a part of some other application. I have
>>> the HTTP URL for the XML document.
>>>
>>> What i want to achieve here is -- Read the XML and want to add the
>>> content to my own application.
>>
>> what exactly do you want to achieve?
>>
>> a) Use the XML in pipelines – easy:
>> <map:generate src="http://…"/>
>>
>> b) Use the XML as if it was a Lenya document:
>> For this purpose I would consider creating a custom resource type
>> which stores only the external URI and includes the content using the
>> Cocoon include transformer.
>>
>> HTH,
>>
>> -- Andreas
>>
>>
>>
>
>
--
Thanks & Regards
Brijesh Mishra
Web Developer
Re: Reading Third Party XML Using Generator
Posted by Andreas Hartmann <an...@apache.org>.
Am 05.05.11 17:21, schrieb Gaurav Kalia:
>> a) Use the XML in pipelines – easy:
>> <map:generate src="http://…"/>
>
> I have tried this but i did not get anything. I have checked the logs as
> well and i can not see any exception.
>
> May be i am missing something, will recheck and try to debug.
Works fine for me. Did you make sure that the remote XML is accessible,
i.e. not protected by HTTP or digest auth? What does the generator
return, only an empty XML? Maybe the error is somewhere else, i.e. the
pipeline is not executed?
Best regards,
Andreas
>
> Regards
> Gaurav
>
>
> On Thursday 05 May 2011 07:09 PM, Andreas Hartmann wrote:
>> Hi Gaurav,
>>
>> Am 05.05.11 10:40, schrieb Gaurav Kalia:
>>> I want to read an XML which is a part of some other application. I have
>>> the HTTP URL for the XML document.
>>>
>>> What i want to achieve here is -- Read the XML and want to add the
>>> content to my own application.
>>
>> what exactly do you want to achieve?
>>
>> a) Use the XML in pipelines – easy:
>> <map:generate src="http://…"/>
>>
>> b) Use the XML as if it was a Lenya document:
>> For this purpose I would consider creating a custom resource type
>> which stores only the external URI and includes the content using the
>> Cocoon include transformer.
>>
>> HTH,
>>
>> -- Andreas
>>
>>
>>
>
>
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Reading Third Party XML Using Generator
Posted by Gaurav Kalia <ga...@techblue.co.uk>.
> a) Use the XML in pipelines – easy:
> <map:generate src="http://…"/>
I have tried this but i did not get anything. I have checked the logs as
well and i can not see any exception.
May be i am missing something, will recheck and try to debug.
Regards
Gaurav
On Thursday 05 May 2011 07:09 PM, Andreas Hartmann wrote:
> Hi Gaurav,
>
> Am 05.05.11 10:40, schrieb Gaurav Kalia:
>> I want to read an XML which is a part of some other application. I have
>> the HTTP URL for the XML document.
>>
>> What i want to achieve here is -- Read the XML and want to add the
>> content to my own application.
>
> what exactly do you want to achieve?
>
> a) Use the XML in pipelines – easy:
> <map:generate src="http://…"/>
>
> b) Use the XML as if it was a Lenya document:
> For this purpose I would consider creating a custom resource type
> which stores only the external URI and includes the content using the
> Cocoon include transformer.
>
> HTH,
>
> -- Andreas
>
>
>
--
Gaurav
Web Development
Techblue Softwares& Technology Blueprint Ltd
T : 08450047142 Extn: 5102
E : gaurav.kalia@techblue.co.uk
W : www.techblue.co.in
www.technologyblueprint.co.uk
Confidentiality Notice
The contents of this email are confidential and may be privileged, and
are intended only for the use of the person or company named herein. Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Techblue software or Technology Blueprint
Limited.
If you are not the intended recipient of this email or a person
responsible for delivering it to the intended recipient, you are hereby
notified that any distribution, copying or dissemination of the
information herein is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Reading Third Party XML Using Generator
Posted by Andreas Hartmann <an...@apache.org>.
Hi Gaurav,
Am 05.05.11 10:40, schrieb Gaurav Kalia:
> I want to read an XML which is a part of some other application. I have
> the HTTP URL for the XML document.
>
> What i want to achieve here is -- Read the XML and want to add the
> content to my own application.
what exactly do you want to achieve?
a) Use the XML in pipelines – easy:
<map:generate src="http://…"/>
b) Use the XML as if it was a Lenya document:
For this purpose I would consider creating a custom resource type which
stores only the external URI and includes the content using the Cocoon
include transformer.
HTH,
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org