Printing XML

Hello All:

My current project (ok its the old one but with new intentions) is heading in a new direction and now we're looking into outputting information from the Arduino in XML instead of HTML. I was wondering if the process would be the same regarding the [print] command. So for example:

client.println("HTTP/1.1 200 OK");

Would it be as simple as changing this to tag out the XML header/tags? Or would it necessitate a change of library for the ethernet shell? I'm guessing since it just outputs lines od text it would be the same...but I'm not sure.

Thanks!

I'm guessing since it just outputs lines od text it would be the same...but I'm not sure.

The print() and println() commands just send strings of text. Whether that text is interpretable as HTML, XML, human-readable text, or gibberish does not matter.

Fantastic, sort of what I assumed. I'll just let the computer side read the lines of text and deal with the XML itself.

Cheers