Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
the_mitsuhiko
on Nov 2, 2017
|
parent
|
context
|
favorite
| on:
What If OpenDocument Used SQLite?
Introducing whitespace in most xml document formats changes the meaning.
cjsuk
on Nov 2, 2017
[–]
No it doesn’t.
majewsky
on Nov 2, 2017
|
parent
[–]
You're both sort of correct. 1 and 2 below are equivalent (afaik), but 1 and 3 most certainly are not.
1: <x>an </x> 2: <x> an</x> 3: <x>a n</x>
cjsuk
on Nov 2, 2017
|
root
|
parent
[–]
It depends on your space settings in the DTD/schema/element. You can be explicit but very few people realise that.
oever
on Nov 2, 2017
|
root
|
parent
|
next
[–]
Indeed. To indent properly you need to know the schema. The schema tells you to which element you may add or remove white-space.
the_mitsuhiko
on Nov 3, 2017
|
root
|
parent
|
prev
[–]
That’s why I said most and not all. I did XML long enough to know both schemas and that their support is bad.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: