Relax XML case-sensitivity for device detection

I'm not sure whether this is a bug or not but since it seems that Serviio is the only app and device I can find affected I suspect it is...
I have a Humax PVR which my TV, Blu-ray, and numerous media player apps all identify as HDR-FOX T2 Media Server but Serviio always reports it as Unrecognized Device
I created a profile for it:
but no matter what I do - <ModelName> etc. - I can't get anything other than Unrecognized Device
Finally, I installed upnp-inspector and probed the Humax which revealed the names it reports:
It uses lowerCamelCase for the XML tags, not UpperCamelCase which serviio appears to insist on. I tried using this in profiles.xml but Serviio then barfs with this:
So, Serviio is being overly strict with regards case in XML tags. The fact that most other apps/devices seem to be case-insensitive with XML tags suggest that there may be more devices than the Humax which don't use UpperCamelCase for XML tags, at least in the <device> section.
I've attached the relevant files.
I have a Humax PVR which my TV, Blu-ray, and numerous media player apps all identify as HDR-FOX T2 Media Server but Serviio always reports it as Unrecognized Device
I created a profile for it:
but no matter what I do - <ModelName> etc. - I can't get anything other than Unrecognized Device
Finally, I installed upnp-inspector and probed the Humax which revealed the names it reports:
It uses lowerCamelCase for the XML tags, not UpperCamelCase which serviio appears to insist on. I tried using this in profiles.xml but Serviio then barfs with this:
- Code:
2013-04-05 00:36:16,808 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: cvc-complex-type.2.4.a: Invalid content was found starting with element 'friendlyName'. One of '{FriendlyName, ModelName, ModelNumber, Manufacturer, ProductNumber, Server}' is expected.
2013-04-05 00:36:16,809 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.
So, Serviio is being overly strict with regards case in XML tags. The fact that most other apps/devices seem to be case-insensitive with XML tags suggest that there may be more devices than the Humax which don't use UpperCamelCase for XML tags, at least in the <device> section.
I've attached the relevant files.