[mythtv] A change to XML Method Responses

David mythtv at theblains.net
Mon Mar 5 22:44:43 UTC 2007


In order to make all XML methods consistent in the formatting of responses,
I would like to change the XML to include the method name (with 'Response'
appended), as the root element.  This will make it the same as all other
upnp responses.

I'm not sure how many people are using the xml methods and am looking for
information on the impact of such a change.


For example - This is the current response to GetHosts:

    <Hosts count="1">
        <Host>MythBackend</Host>
        <Host>MediaServer</Host>
    </Hosts>


Possible New Response -

    <GetHostsResponse>
        <Hosts count="2">
            <Host>MythBackend</Host>
            <Host>MediaServer</Host>
        </Hosts>
    </GetHostsResponse>

	- or possibly - 

    <GetHostsResponse>
        <Count>2</Count>
        <Host>MythBackend</Host>
        <Host>MediaServer</Host>
    </GetHostsResponse>

Thanks,

David.




More information about the mythtv-dev mailing list