<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi£¬<div>      When I use virDomainDefineXML(conn, xml), there is a message -</div><div>       "libvir: Domain Config error : at line 1: Opening and ending tag mismatch: domian line 1 and domain"- that I cannot continue to define my domain.</div><div>      I search a lot of website, but failed to find correct answer. I guess the value of const char *xml might be the point. I set "<domain>....</domain>" or "<domain type='qemu'>....</domain>", but both are not successful. My content of xml is </div><div><span style="font-size: 12pt; ">"<domain type='qemu'> </span></div><div>     <name>qemu-test</name></div><div>      ......</div><div></domain>"</div><div><br></div><div>      Also I am confused that the API of <span style="font-size: 12pt; ">virDomainDefineXML don't tell me input any filepath of XML, so how do the API find out correct filename?</span></div><div><span style="font-size: 12pt; "><br></span></div><div><span style="font-size: 12pt; ">      Thanks a lot!</span></div><div><span style="font-size: 12pt; "><br></span></div><div><span style="font-size: 12pt; ">      Regard,</span></div><div><span style="font-size: 12pt; ">       Cory</span></div>                                    </div></body>
</html>