Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by thangalin on Sunday July 31, 2016 @02:53PM
(#12198294)
What takes fewer lines of code to parse?
Or accepting both:
How would you specify an empty value for mandatory attributes?
[ Parent
| on HN ]
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by colejohnson66 on Sunday July 31, 2016 @03:12PM
(#12198372)
I've seen empty values written as
<tag attr1 attr2="val">data</tag>
Whether that's legal or not, I don't know.
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by oceanswave on Sunday July 31, 2016 @03:28PM
(#12198447)
not valid. wondering if you've seen that within HTML, where it is valid.
Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by colejohnson66 on Sunday July 31, 2016 @04:42PM
(#12198741)
Actually, now that you mention it, I think it's from Chrome's Inspect Element tool, but I can't check right now.
I think if you wrote something like
<div class="">...</div>
it would display in the tool as <div class>...</div>