It's probably wrong to use a scriptlet to pass the XML data into that construction. An EL expression would probably be the thing to use. But that's a question about JSP, so I will move the question to that forum. It would help if you could append a description of your problem to the thread -- what goes wrong when you do what you did, what you expect, that sort of thing.
subject: how to get object of this below chart and write in to pdf here strXMl is string of xml