code: public static Layout parseText(String xml) {
          try {
              return parseDocument(XMLUtil.parseXMLFromString(xml));
          } catch (Exception e) {
              throw MiscUtil.toUnchecked(e);
          }
      }
docs: Parse the layout from XML content.
  
  @param xml The XML content to parse.
  @return The root layout element.