Skip to content

An implementation that adds CDATA tags to an XML request when using JAXB for marshalling.

Notifications You must be signed in to change notification settings

pkoli/JAXB-Marshaller-CDATA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAXB-CDATA

An implementation to use JAXB Marshaller to add CDATA tags if XML is contained inside XML tags. The approach uses JAXB marshaller to marshall into SAX ContentHandler, the content handler's characters method has logic to detect XML and if present add CDATA tags around it. I've overriden the com.sun.xml.txw2.output.XMLWriter character method to detect XML, and then the startCDATA and endCDATA methods of XMLWriter class have been used to add CDATA tags.

About

An implementation that adds CDATA tags to an XML request when using JAXB for marshalling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages