Test http://www.w3.org/2001/DOM-Test-Suite/level3/ls/SystemId1

<test name='SystemId1' schemaLocation='http://www.w3.org/2001/DOM-Test-Suite/Level-3 dom3.xsd'>
     <metadata>
          <title>SystemId1</title>
          <creator>Curt Arnold</creator>
          <description>Writes a document to a URL for a temporary file and rereads the document.</description>
          <date qualifier='created'>2003-12-08</date>
          <subject resource='http://www.w3.org/TR/2003/CR-DOM-Level-3-LS-20031107/load-save#LS-LSInput-systemId'/>
          <subject resource='http://www.w3.org/TR/2003/CR-DOM-Level-3-LS-20031107/load-save#LS-LSOutput-systemId'/>
</metadata>
     <implementationAttribute name='validating' value='false'/>
     <var name='testDoc' type='Document'/>
     <var name='domImpl' type='DOMImplementationLS'/>
     <var name='output' type='LSOutput'/>
     <var name='serializer' type='LSSerializer'/>
     <var name='systemId' type='DOMString'/>
     <var name='checkSystemId' type='DOMString'/>
     <var name='status' type='boolean'/>
     <var name='input' type='LSInput'/>
     <var name='parser' type='LSParser'/>
     <var name='checkDoc' type='Document'/>
     <var name='docElem' type='Element'/>
     <var name='docElemName' type='DOMString'/>
     <var name='NULL_SCHEMA_TYPE' type='DOMString' isNull='true'/>
     <load var='testDoc' href='test0' willBeModified='false'/>
     <implementation var='domImpl'/>
     <!-- create an LSOutput and connect it to an stock LSWriter -->
     <createLSOutput var='output' obj='domImpl'/>
     <!-- check that it was initially null -->
     <systemId var='checkSystemId' obj='output' interface='LSOutput'/>
     <assertNull actual='checkSystemId' id='LSOutputSystemIdInitiallyNull'/>
     <createTempURI var='systemId' scheme='file'/>
     <systemId obj='output' value='systemId' interface='LSOutput'/>
     <systemId var='checkSystemId' obj='output' interface='LSOutput'/>
     <assertEquals expected='systemId' actual='checkSystemId' ignoreCase='false' id='LSOutputSystemIdMatch'/>
     <!-- create a serializer and write a test document -->
     <createLSSerializer var='serializer' obj='domImpl'/>
     <write var='status' obj='serializer' destination='output' nodeArg='testDoc'/>
     <assertTrue actual='status' id='writeStatus'/>
     <!-- read the serialized document -->
     <createLSInput var='input' obj='domImpl'/>
     <systemId var='checkSystemId' obj='input' interface='LSInput'/>
     <assertNull actual='checkSystemId' id='LSInputSystemIdInitiallyNull'/>
     <systemId obj='input' value='systemId' interface='LSInput'/>
     <systemId var='checkSystemId' obj='input' interface='LSInput'/>
     <assertEquals expected='systemId' actual='checkSystemId' ignoreCase='false' id='LSInputSystemIdMatch'/>
     <createLSParser var='parser' obj='domImpl' schemaType='NULL_SCHEMA_TYPE' mode='1'/>
     <parse var='checkDoc' obj='parser' input='input'/>
     <assertNotNull actual='checkDoc' id='checkNotNull'/>
     <documentElement var='docElem' obj='checkDoc'/>
     <nodeName var='docElemName' obj='docElem'/>
     <assertEquals expected='"elt0"' actual='docElemName' id='checkDocElemName' ignoreCase='false'/>
</test>

Copyright (c) 2001-2004 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. This program is distributed under the W3C's Software Intellectual Property License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See W3C License http://www.w3.org/Consortium/Legal/ for more details.