You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@mina.apache.org by sushmita chandra <fl...@gmail.com> on 2011/07/11 08:08:45 UTC
What codec should we use for reading a incoming XML
Hi,
I am using Mina Endpoint to receive a XML File. I am not able to receive
it on the mina end point that i have opened.When i specify the codec as
textline, i could read only one line. Can some one help me to read the
complete file and specify what codec that i have to use?
--
Thanks and Regards,
Sushmita Chandra
RE: What codec should we use for reading a incoming XML
Posted by Abhishek Chavan <ab...@nagarro.com>.
Dear Sushmita,
Why don't you try writing your own Codec or you can do without a codec and
get the low level bytes to form a XML request? You can checkout the
examples providing in the Examples section on how to implement your own
Codec (Checkout ImageCodecFactory in
http://mina.apache.org/report/trunk/xref/org/apache/mina/example/imagine/ ).
Thanks & Regards
Abhishek Chavan
Member Architecture Group
Nagarro Software Pvt. Ltd.
PH: +919953541323
DISCLAIMER:
This communication, along with any documents, files or attachments, is
intended only for the use of the addressee and may contain legally
privileged and confidential information. If you are not the intended
recipient, you are hereby notified that any dissemination, distribution or
copying of any information contained in or attached to this communication is
strictly prohibited. This communication does not form any contractual
obligation on behalf of the sender or, the sender's employer, or the
employer's parent company, affiliates or subsidiaries.
-----Original Message-----
From: sushmita chandra [mailto:flightsoffantasy169@gmail.com]
Sent: Monday, July 11, 2011 11:42 AM
To: users@mina.apache.org
Subject: Fwd: What codec should we use for reading a incoming XML
Hi,
I am using Mina Endpoint to receive a XML File. I am not able to receive
it on the mina end point that i have opened.When i specify the codec as
textline, i could read only one line. Can some one help me to read the
complete file and specify what codec that i have to use?
--
Thanks and Regards,
Sushmita Chandra
--
Thanks and Regards,
Sushmita Chandra
Re: What codec should we use for reading a incoming XML
Posted by Ashish <pa...@gmail.com>.
On Mon, Jul 11, 2011 at 12:37 PM, Kiran Ayyagari <ka...@apache.org>wrote:
> You cannot use TextLine codec for sending/receiving XML content, cause
> textline codec uses a new line as delimiter,
> for XML the semantics are completely different.
>
> Am not quite sure if the proposed MINA xml codec is implemented but
> you can take a look at the one used in Vysper[1] project.
>
> [1] http://mina.apache.org/vysper/index.html
>
>
Agree with Kiran.
If you want something working, Vysper nbxml package is for you.
You may also like to view these slides -
http://mina.apache.org/conferences.data/Mina_in_real_life_ASEU-2009.pdf
Emmanuel has described, in detail, about XML codec.
Good Luck !
- ashish
Re: What codec should we use for reading a incoming XML
Posted by Kiran Ayyagari <ka...@apache.org>.
You cannot use TextLine codec for sending/receiving XML content, cause
textline codec uses a new line as delimiter,
for XML the semantics are completely different.
Am not quite sure if the proposed MINA xml codec is implemented but
you can take a look at the one used in Vysper[1] project.
[1] http://mina.apache.org/vysper/index.html
On Mon, Jul 11, 2011 at 11:41 AM, sushmita chandra
<fl...@gmail.com> wrote:
> Hi,
>
> I am using Mina Endpoint to receive a XML File. I am not able to receive
> it on the mina end point that i have opened.When i specify the codec as
> textline, i could read only one line. Can some one help me to read the
> complete file and specify what codec that i have to use?
>
> --
> Thanks and Regards,
> Sushmita Chandra
>
>
>
> --
> Thanks and Regards,
> Sushmita Chandra
>
--
Kiran Ayyagari
Fwd: What codec should we use for reading a incoming XML
Posted by sushmita chandra <fl...@gmail.com>.
Hi,
I am using Mina Endpoint to receive a XML File. I am not able to receive
it on the mina end point that i have opened.When i specify the codec as
textline, i could read only one line. Can some one help me to read the
complete file and specify what codec that i have to use?
--
Thanks and Regards,
Sushmita Chandra
--
Thanks and Regards,
Sushmita Chandra