It's not just syntactic difference. BN is much simpler, has fewer concepts, is more efficient, and is designed to solve some of the problems XML has.
XML has elements, attributes, text, comments, CDATA, DTD, entities, DOCTYPE declarations, processing instructions, ... BN just has elements, text and comments.
An XML document can only have 1 root-element. A BN document is just a collection of 0 or more nodes (node = element, text or comment), so you can have as many root-nodes as you want.
In XML, white space causes problems. It's not always obvious if white space is part of the data or not. In BN it's always clear if white space is significant or not.
In XML, you can't put 2 text nodes next to each other. In BN, you can.
And BN is also less verbose than XML.
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.