Loading...
Pages: [1]   Go Down
Author Topic: Printing XML  (Read 305 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 316
Posts: 35593
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 36
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Print
 
Jump to: