xsd:schemaLocationにxsdを入れると、インターネットからxsdをダウンロードしてxmlを検証しますか?システムxsdを使用したxmlのオフライン検証
xsdをダウンロードしてオフライン検証を行いたい場合は、どうしたらいいですか?
私はDTDのオフライン検証を行う方法を知っていますが、xsdについてはわかりません。 DTDのために
、私は現在、次のことをやっている:
<!DOCTYPE struts-config SYSTEM "struts-config_1_1.dtd">
私はこのような何かを行うことができますか?
EDIT
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
file://spring-beans-3.0.xsd
http://www.springframework.org/schema/context
file://spring-context-3.0.xsd">
へ
<!-- beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd"-->
から:私は間違っているよう
が見えます。 jarファイルにdtd/xsdが見つからない場合、春はインターネットにのみ行きます。私はインターネットプラグを引っ張り、アプリケーションがうまく動作するのを見た。また
、ソース:トラブルや間違った質問に対するhttps://forum.hibernate.org/viewtopic.php?f=1&t=949031
申し訳ありません。
ダウンロードしていますか?どなた"?異なるソフトウェアの動作が異なります。 「それ」が何であるかを知らなくても、ソフトウェアがどのように動作するかはわかりません。 –
@MichaelKay私の悪い、間違った質問。ダウンロードしてオフラインで正常に動作します。 –