Re: [Simple-support] Problem consuming external XML that contains attribute with name "class"
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-07-03 05:46:23
|
Yes, there are several ways. You could write a Visitor implenmentation to strip the class attribute. Or you could instantiate a TreeStrategy and provide a string like "type" which will use "type=" attributes instead of "class=" attributes. The test cases have many examples of this situation being handled. --- On Wed, 8/6/11, Mattis Stordalen <sto...@gm...> wrote: From: Mattis Stordalen <sto...@gm...> Subject: [Simple-support] Problem consuming external XML that contains attribute with name "class" To: sim...@li... Received: Wednesday, 8 June, 2011, 3:13 PM Hi, I get a ClassNotFoundException since Simple tries to create a class with the same class name as the value of the "class" attribute. Is there a way to tell Simple to ignore the class attribute? I am using Simple 2.5.3. Kind regards, Mattis -----Inline Attachment Follows----- ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |