Just curious, in all examples (i.e. in tutorials, books, etc.) I see child/sub-elements on a NEW line from the main element, for example:
<note>
<title>foo</title>
<message>bar</message>
</note>
I've never seen:
<note><title>foo</title>
<message>bar</message></note>
What I'd like to know is: is this a REQUIREMENT of XML, that each element be on its own line, or is this just a style nicety that most people obey?
<note>
<title>foo</title>
<message>bar</message>
</note>
I've never seen:
<note><title>foo</title>
<message>bar</message></note>
What I'd like to know is: is this a REQUIREMENT of XML, that each element be on its own line, or is this just a style nicety that most people obey?