rdonkin     2004/06/24 11:36:30

  Modified:    betwixt/xdocs/guide output.xml
  Log:
  Added documentation for empty tag rendering.
  
  Revision  Changes    Path
  1.3       +14 -0     jakarta-commons/betwixt/xdocs/guide/output.xml
  
  Index: output.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/betwixt/xdocs/guide/output.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- output.xml        11 Apr 2004 10:53:49 -0000      1.2
  +++ output.xml        24 Jun 2004 18:36:30 -0000      1.3
  @@ -39,6 +39,20 @@
   Note that only document fragments are created so you may need to append any
   prologs before writing the bean.
       </p>
  +        <subsection name='Rendering Empty Tags'>
  +            <p>
  +Empty tags (ones containing no body content and no child nodes) can be rendered 
  +in two ways: as a single closed tag (for example <code>&lt;element/&gt;</code>) or 
as a 
  +pair of tags (<code>&lt;element&gt;&lt;/element&gt;</code>). By default, Betwixt
  +renders empty tags as a single close tag but setting the <code>BeanWriter</code>
  +<code>endTagForEmptyElement</code> to true will ensures that all empty elements are 
  +rendered as a pair of tags. For example:
  +        </p>
  +<source>
  +        BeanWriter writer = new BeanWriter(out);
  +        writer.setEndTagForEmptyElement(true);
  +</source>
  +    </subsection>
           <subsection name='Content Encoding'>
               <p>
   When writing character data (the content between markup tags) to a textual stream,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to