AnsweredAssumed Answered

Spark removing some of my custom tags/attributes

Question asked by evil on Oct 31, 2008
Latest reply on Nov 7, 2008 by evil

Hi,

I am writing a plugin to filter some custom headline messages.

I built a filter as specified in the plugin guidelines, but before reaching the filter, apparently spark removes some information from my messages, because i see them arriving correct (with wireshark) and when i print message.toXML() i see missing fields.

E.g. 1:

<message to="alice@germany" from="germany" type="headline">

     <mytag xmlns="urn:xmpp:mytag:0">

          <sontag>text1</sontag>

          <daughtertag>text2</daughtertag>

     </mytag>

</message>

 

prints:

 

<message to="alice@germany" from="germany" type="headline">

     <mytag xmlns="urn:xmpp:mytag:0">

          <daughtertag>text2</daughtertag>

     </mytag>

</message>

 

E.g. 2:

<message to="alice@germany" from="germany" type="headline">

     <mytag xmlns="urn:xmpp:mytag:0">

          <sontag son="text1" daughter="text2" />

     </mytag>

</message>

 

prints:

 

<message to="alice@germany" from="germany" type="headline">

     <mytag xmlns="urn:xmpp:mytag:0">

          <sontag>

          </sontag>

     </mytag>

</message>

 

I didn't want to put my hands on the core.

Do you have any suggestion?

 

Thanks

Outcomes