org.apache.cocoon.xml.sax.AttributesImpl and org.apache.cocoon.xml.sax.AbstractSAXPipe are deprecated | Community
Skip to main content
Level 3
Sep 8, 2023 4:14 AM UTC
Solved

org.apache.cocoon.xml.sax.AttributesImpl and org.apache.cocoon.xml.sax.AbstractSAXPipe are deprecated

Hi, would like to ask which are the equivalent libraries from XML APIs for the following items that are deprecated.
org.apache.cocoon.xml.sax.AttributesImpl

org.apache.cocoon.xml.sax.AbstractSAXPipe

Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
Sep 8, 2023 7:36 AM UTC

Hi Lyon,

 

There's more modern way than using the cocoon one. Luckly sling project does not force us to use it. Hene we can rely on org.xml packages.

 

Please see following excellent blog post by @ Imran Khan:

https://medium.com/@toimrank/link-checker-and-transformer-381d4f245d12

 

Here, we are using org.xml.sax.helpers.AttributesImpl as alternative to org.apache.cocoon.xml.sax.AttributesImpl and AbstractSAXPipe is no longer needed in this implementation.


Regards,

Peter

2 replies

Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
Sep 8, 2023 7:36 AM UTC

Hi Lyon,

 

There's more modern way than using the cocoon one. Luckly sling project does not force us to use it. Hene we can rely on org.xml packages.

 

Please see following excellent blog post by @ Imran Khan:

https://medium.com/@toimrank/link-checker-and-transformer-381d4f245d12

 

Here, we are using org.xml.sax.helpers.AttributesImpl as alternative to org.apache.cocoon.xml.sax.AttributesImpl and AbstractSAXPipe is no longer needed in this implementation.


Regards,

Peter

Translate
Level 3
Sep 8, 2023 9:30 AM UTC

Thanks, will try to check that one

 

Translate