News for hackers. Stuff that matters.
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by erlehmann_ on Monday August 01, 2016 @03:19AM (#12200696)
It is rare in real-world XML that elements have children with the same type. Do you have a (non-divitis) example where the tags are all the same?
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by lmm on Monday August 01, 2016 @05:43AM (#12201149)
It happens with any tree structure. E.g. I used to work on a system that managed reinsurance contracts and represented them as trees of contracts.
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by erlehmann_ on Monday August 01, 2016 @06:38AM (#12201345)
Did the elements often have immediate child elements that had immediate child elements (and so on) of the same type? Like:

  <contract><contract><contract><contract> […]
Re:How to Avoid Being Called a Bozo When Producing XML (2005) by lmm on Monday August 01, 2016 @07:13AM (#12201507)
No, there were a couple of layers in that case. But that doesn't actually help you add a child at the correct level, because the end of a contract would look something like:

                ...
                </contract>
              </subcontracts>
            </content>          
          </contract>
        </subcontracts>
      </content>
    </contract>