Fwd: Newbie question- Running DOM TS

FYI

Begin forwarded message:

> From: Curt Arnold <carnold@houston.rr.com>
> Date: February 23, 2005 10:38:02 AM CST
> To: neo aq <neo.aquarian@gmail.com>
> Subject: Re: Newbie question- Running DOM TS
>
>
> On Feb 21, 2005, at 10:53 PM, neo aq wrote:
>
>>
>> Hi people,
>> Please bear with me for asking such a stupid question- when I try to
>> run the DOM TS against my DOM implementation, it tests the JRE DOM
>> implementation and not my implementation. This is the message I get:
>>
>> <snip>
>> See W3C License http://www.w3.org/Consortium/Legal/ for more details.
>>
>> Implementation title:Java Runtime Environment
>> Implementation vendor:Sun Microsystems, Inc.
>> Implementation version:1.4.2_06
>> </snip>
>>
>>  Setup: copied dom3-core-tests-20040405.jar to my DOM implementation
>> classes directory and ran using java - jar
>> dom3-core-tests-20040405.jar
>>
>>  I went through the FAQs as well as the mail archive but couldnt find
>> an answer to my question. Any help will be greatly appreciated.
>> Apologetically yours,
>> Neo
>>
>>
>
> Sorry about the delay.
>
> With no other configuration, the test suite will run the  
> implementation provided by  
> javax.xml.parsers.DocumentBuilderFactory.newInstance().  The default  
> implementation can be overriden by specifying another implementation  
> of DocumentBuilderFactory with a line like:
>
> java  
> -Djavax.xml.parsers.DocumentBuilderFactory=org.example.mydom.DocumentBu 
> ilderFactory -jar dom3-core-tests-20040405.jar
>
> If you implement the DOM L3 Load and Save, you can do:
>
> java  
> -Dorg.w3c.dom.DOMImplementationSouceList=org.example.mydom.DOMImplement 
> ationSourceImpl -cp dom3-core-tests-20040405.jar  
> org.w3c.domts.level3.core.TestDefaultLS
>
>
> You may also need to specify -Djava.endorsed.dirs= to specify that  
> your implementation should be trusted to provide org.w3c.dom classes.
>
> The runtests.xml file might be helpful which shows running many  
> different DOM implementations.  The JAXP supporting implementations  
> just control the classpath, the LS ones set DOMImplementationSource  
> and run TestDefaultLS and TestDefaultLSAlt.  Other implementations  
> like Batik require their own custom adapter to create DOM instances.
>

Received on Wednesday, 23 February 2005 18:50:39 UTC