Hacker News new | past | comments | ask | show | jobs | submit login

> but it was a bad design decision to store long blocks of HTML inside XML attributes instead of XML elements.

not at all - it's that what allows the simplest structure for nesting of outline elements.

An <outline> is an XML element, possibly containing one or more attributes, and containing any number of <outline> sub-elements.




XML elements can contain both text and child elements. Character data didn't have to be stored in an attribute to allow outline nesting.

<?xml version="1.0" encoding="UTF-8"?>

<node>

    <node> 

      <![CDATA[ Hello I am text ]]>

      <node> ... </node>

      <node> ... </node>

    </node>
</node>


It's about outliners. You move just one thing.


Child elements of character data can be moved around too.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: