in reply to Re: parsing xml file using LIBXML
in thread parsing xml file using LIBXML

Disclaimer: I like XML::Twig. A lot. But I really don't know anything about proper XML design. I just use XML that is defined by other programs and, thus, by other people.

"Adapted." That's a new term to me. Do you have any URLs or anything (even if it's a link on xmltwig.org) on proper XML document design? I've never seen anything that describes when something should be an attribute vs a new subelement. I'd love to see something like that to learn from - so far, I just go by gut feel, and am probably wrong 50-70% of the time compared to "standard usage" :-)

Replies are listed 'Best First'.
Re^3: parsing xml file using LIBXML
by mirod (Canon) on May 13, 2005 at 04:08 UTC

    Sorry for the "adapted", it's from the French. Replace by "designed" and I hope it will make more sense.

    As for the old "attribute vs element" question. It has been the subject of countless threads, discussions, arguments... Instead of adding mine, I'll refer you to SGML/XML: Using Elements and Attributes, the commentaries are very interesting.