W3C home > Mailing lists > Public > www-dom-ts@w3.org > February 2005

Fwd: Newbie question- Running DOM TS

From: Curt Arnold <carnold@houston.rr.com>
Date: Wed, 23 Feb 2005 12:50:34 -0600
Message-Id: <c91adb04a3c46a8e98159f94f064e92d@houston.rr.com>
To: www-dom-ts@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:50 GMT