これを使用して、XML で HTML ページを読み込みます
Dim xmlDoc As New XmlDocument()
xmlDoc.Load(Server.MapPath("index.htm"))
または
Dim xmldoc As XDocument
xmldoc = XDocument.Load(Server.MapPath("index.htm"))
しかし、次のようなエラーが発生しました:
Expecting an internal subset or the end of the DOCTYPE declaration. Line 2, position 14
;'>' is an unexpected token. The expected token is '"' or '''. Line 1, position 62
;Expecting an internal subset or the end of the DOCTYPE declaration. Line 5, position 20
.
これらのエラーはすべて、1 つを解決したときに発生し、別のエラーが表示されます。
このファイルをロードするのに最適な方法を使用していますか、それとも別の方法がありますか?