if (mRoot) {
*aFragment = nsnull; if (mParseError) {  return NS_ERROR_DOM_SYNTAX_ERR; } else if (mRoot) {
nsXMLFragmentContentSink::GetFragment(nsIDOMDocumentFragment** aFragment){  if (mRoot) {    return CallQueryInterface(mRoot, aFragment);  }  *aFragment = nsnull;  return NS_OK;}