This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
How to parse XML using special character / using Transform
posted 4 years ago
I am using javax.xml.transform.Transformer to transform XML using XSLT.
In one of the attribute name has special characters '/'. And it is failing with error "Attribute name "XXX" associated with an element type "XXXXXXX" must be followed by the ' = ' character". If I remove / in attribute name, XML is getting parsed. But it is not correct fix. We need to omit this special character while transforming XML. Please suggest.