Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I customise the XML returned by a service?

customise RETURNED service XML
0
Posted

Can I customise the XML returned by a service?

0

The format of the XML returned by a service can be customised by setting the following atttributes on the service class: • Indentation – uses to define the number of spaces worth of indentation for response elements; the default is 2. • UseIndentation – if set to true responses are formatted across multiple lines; if set to false a response is formatted as a single line; the default is true. • UseIntTag – if set to true integer values in responses are formatted as if set to false they are formatted as ; the default is false. • UseStringTag – if set to true string values in responses are formatted as ; if set to false they are formatted as simply the text contained by the element; the default is true. • XmlEncoding – this is used to specify the text encoding of responses. By default UTF-8 is used.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.