elementtree terminology + tangential questions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mirandacascade@yahoo.com

    #1

    elementtree terminology + tangential questions

    Was prompted to ask these questions when reading the following link:



    provides a clear explanation of what the tail member is in the
    elementtree package.

    Questions:
    1) In the xml world, is the text between an element's end tag and the
    next tag referred to as the "tail"?
    2) None of the xml documents to which I've had exposure (a very, very
    small set) have had text between an element's end tag and the next tag,
    hence the following question: are there some 'best practices' advice
    available to help one decide when it's a good idea to put text between
    an element's end tag and the next tag as opposed to putting text in the
    text property of an element?
    3) Are these questions appropriate for the comp.lang.pytho n group, or
    should they be directed to a different group?

    Thank you.

  • Marc 'BlackJack' Rintsch

    #2
    Re: elementtree terminology + tangential questions

    In <1162655068.276 394.287080@m73g 2000cwd.googleg roups.com>, mirandacascade
    wrote:
    2) None of the xml documents to which I've had exposure (a very, very
    small set) have had text between an element's end tag and the next tag,
    hence the following question: are there some 'best practices' advice
    available to help one decide when it's a good idea to put text between
    an element's end tag and the next tag as opposed to putting text in the
    text property of an element?
    This depends on the type of document. Examples of xml with text between
    tags are XHTML or DocBook. ::

    <p>This is an <em>example</emof "tail text" in
    <strong>XHTML </strong>.</p>

    Ciao,
    Marc 'BlackJack' Rintsch

    Comment

    • Paul McGuire

      #3
      Re: elementtree terminology + tangential questions

      <mirandacascade @yahoo.comwrote in message
      news:1162655068 .276394.287080@ m73g2000cwd.goo glegroups.com.. .
      2) None of the xml documents to which I've had exposure (a very, very
      small set) have had text between an element's end tag and the next tag,
      Text elements are not limited to printed/visible text. If you parsed a
      formatted XML string, I think the indenting whitespace shows up as text
      elements between tags.

      -- Paul


      Comment

      Working...