Hi All, Is there is any library that I can use to deserialize XML file in SXML and serialize SXML back to XML in Kawa. My search turned up some discussion about it on SSAX mailing list and on Kawa mailing list but with no definitive conclusion. Before I start looking into what it will take to port an existing library to Kawa, I want to make sure that nothing exists. I would also like to know if Kawa recommends a different approach. Thanks Prateem
My first inclination when it comes to doing XML processing in kawa beyond what it provides ( https://www.gnu.org/software/kawa/XML-tools.html ) would be to use the standard Java API. But while I haven't used SSAX/SXML in kawa, experience with other scheme libraries is that unless it's doing fancy stuff with continuations, things generally work well enough out of the box. On Fri, May 20, 2022 at 5:02 AM Prateem Mandal via Kawa <kawa@sourceware.org> wrote: > Hi All, > > Is there is any library that I can use to deserialize XML file in SXML and > serialize SXML back to XML in Kawa. My search turned up some discussion > about it on SSAX mailing list and on Kawa mailing list but with no > definitive conclusion. > > Before I start looking into what it will take to port an existing library > to Kawa, I want to make sure that nothing exists. > > I would also like to know if Kawa recommends a different approach. > > Thanks > Prateem >
Thank you Shawn for the clarifications. I will first try solving my
immediate problem using standard Java API first.
-P
On Fri, May 20, 2022 at 1:12 PM Shawn Wagner <shawnw.mobile@gmail.com>
wrote:
> My first inclination when it comes to doing XML processing in kawa beyond
> what it provides ( https://www.gnu.org/software/kawa/XML-tools.html )
> would be to use the standard Java API.
>
> But while I haven't used SSAX/SXML in kawa, experience with other scheme
> libraries is that unless it's doing fancy stuff with continuations, things
> generally work well enough out of the box.
>
>
> On Fri, May 20, 2022 at 5:02 AM Prateem Mandal via Kawa <
> kawa@sourceware.org> wrote:
>
>> Hi All,
>>
>> Is there is any library that I can use to deserialize XML file in SXML and
>> serialize SXML back to XML in Kawa. My search turned up some discussion
>> about it on SSAX mailing list and on Kawa mailing list but with no
>> definitive conclusion.
>>
>> Before I start looking into what it will take to port an existing library
>> to Kawa, I want to make sure that nothing exists.
>>
>> I would also like to know if Kawa recommends a different approach.
>>
>> Thanks
>> Prateem
>>
>
> Is there is any library that I can use to deserialize XML file in SXML and > serialize SXML back to XML in Kawa. The libraries (chibi sxml) and (chibi html-parser) in https://snow-fort.org/pkg should be portable R7RS code, and hence fairly easy to use from Kawa.