File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes How to parse XML using special character / using Transform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to parse XML using special character / using Transform" Watch "How to parse XML using special character / using Transform" New topic
Author

How to parse XML using special character / using Transform

ravichandra lvsr
Greenhorn

Joined: May 30, 2012
Posts: 1
Hi,

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.

Regards,
RC
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to parse XML using special character / using Transform