Code example for XmlSerializer

Methods: endTag, startTag, text

0
      } 
      if( content == null)
      { 
         content = "";
      } 
      serializer.text("\n");
      serializer.startTag(ns, tag);
      serializer.text(content);
      serializer.endTag(ns, tag);
   } 
 
   public boolean needsBundling() 
   { 
      return mNeedsBundling;
   } 
 
   public static String convertStreamToString(InputStream is) throws IOException
   { 
      String result = "";
      /* 
       * To convert the InputStream to String we use the Reader.read(char[]