Android Lint producing invalid xml files -


i have large android project trying run android lint on. works fine when run lint --html , produce html file. when run lint --xml though produces invalid xml file. problematic because try integrate android lint our jenkins server , jenkins requires xml files. error getting is:

org.xml.sax.saxparseexception; linenumber: 144334; columnnumber: 141;  invalid xml character (unicode: 0x{2}) found in value of attribute "{1}"  , element "0".          explanation="you can replace strings, such 1/2, , 1/4, dedicated characters these, such ½ (½) ,  

strangely appears failing illegal character in lint explanation. realize turn particular warning off less ideal. there way prevent happening? thanks!

so looks may have found bug in plugin. going post work around came in hopes can others while resolved. issue causing problem jenkins xml parser cannot read of characters in warning explanation.

thus when run lint suggest outputting file such 'lint-report-malformed.xml' stackoverflow question provides perl script filtering invalid characters file. how remove invalid characters xml file using sed or perl

perl -csda -pe'    s/[^\x9\xa\xd\x20-\x{d7ff}\x{e000}-\x{fffd}\x{10000}-\x{10ffff}]+//g; ' lint-report-malformed.xml > lint-report.xml 

and jenkins plugin can read file.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -