我在我的 XML 文档中遇到错误第 2 行。请帮忙。
"The markup in the document following the root elemnt must be well formed."
我的 XML 是
<property name="src" location="C:\Selenium\Workspace\AutoTester\src"/>
<property name="libs" location="C:\Selenium\Ref_Library"></property>
<property name="build" location="build"></property>
<!-- Define the classpath which includes the junit.jar and the classes after compiling-->
<path id="AutoTester.classpath">
<pathelement location="bin"/>
<pathelement location="${libs}/jxl.jar"/>
<pathelement location="${libs}/selenium-java-srcs.jar"/>
<pathelement location="${libs}/selenium-java.jar"/>
<pathelement location="${libs}/selenium-server-standalone.jar"/>
<pathelement location="${libs}/testng.jar"/>
</path>
<!-- Deletes the existing build and result directories-->
<target name="clean">
<delete dir="${build}" />
</target>
<!-- Creates the build, and test results directories-->
<target name="makedir">
<mkdir dir="${build}" />
</target>
<!-- Compiles the java code -->
<target name="compile" depends="clean, makedir">
<javac srcdir="${src}" destdir="${build}" debug="true" includeAntRuntime="false">
<classpath refid="AutoTester.classpath" />
</javac>
</target>