集百万部潮流:vb操作xml文件的一个问题急!!

来源:百度文库 编辑:高校问答 时间:2024/05/06 19:51:15
xml文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource" destroy-method="close" abstract="false" singleton="true" lazy-init="default" autowire="default" dependency-check="default">
<property name="driverClassName">
<value>com.sybase.jdbc2.jdbc.SybDriver</value>
</property>
。。。。。。。。。。。。。。
VB程序如下:
。。。。。。。。
Set xmlDocument = New DOMDocument
xmlDocument.Load m_AppPath & "Application.xml"
Set nodeRoot = xmlDocument.documentElement
MsgBox nodeRoot.xml

就是DTD那个作怪,去掉他就可以,高手救命啊

是不是DTD和XML不匹配?