News for hackers. Stuff that matters.
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?

    <element.name id.value="3.14">
Or accepting both:

    <element.name id.value="3.14">
    <element.name id.value=3.14>
How would you specify an empty value for mandatory attributes?
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>
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by kozak on Monday August 01, 2016 @07:15AM (#12201516)
Chrome's Inspect Element shows you the non-serialized DOM structure, which means it's neither XML nor HTML at that point.