Scheme of custom IQ

Hello everybody,

I recently started developing my own plugin for openfire.

I added a IQHandler which finally starts to recognize my IQs.

However, I struggle with some thing.

For example I want to add an IQ that can be used on a client to request either the totalNumber of registered Users or the totalNumber of users within a specific group.

The IQ I send looks like this

The “userType” attribute can either be “all” or “companies”

However, on the XMPPServer the userType attribute is not found. Is my XML scheme corrupted? Did I ignore some specifications?

I really think I messed up with the XML format somehow

Thanks in advance