code: public static String toXML(BaseComponent root, String... excludedProperties) {
          return XMLUtil.toString(toDocument(root, excludedProperties));
      }
docs: Returns an XML-formatted string that mirrors the CWF component tree starting at the specified
  root.
  
  @param root BaseComponent whose subtree is to be traversed.
  @param excludedProperties An optional list of properties that should be excluded from the
  output. These may either be the property name (e.g., "uuid") or a property name
  qualified by a component name (e.g., "window.uuid"). Optionally, an entry may be
  followed by an "=" and a value to exclude matches with a specific value. Note that
  "innerAttrs" and "outerAttrs" are always excluded.
  @return The XML text representation of the component subtree.