24
我對XML/Schema文件的知識有限。如何使用XML文檔中本地計算機上的Schema
所以這應該是一個相當簡單的問題。 如何爲schemaLocation指定本地文件?
<?xml version="1.0"?>
<note
xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3schools.com note.xsd">
...
</note>
這是來自www.w3.org的示例,指定模式的部分位於schemaLocation中。 我試着看文檔,但是如何指定一個本地文件?
喜歡的東西
xsi:schemaLocation="../relativepath/schemafolder not.xsd">
感謝
所以鏈接不必是有效的?我仍然需要在那裏放些東西?即使它根本不用? – grobartn 2011-01-31 22:48:39