OT-- Can't load XML file from local disk

Albert Pi <[email protected]> Wed, 11 Dec 2002 14:29:43 -0500
Newsgroups gmane.comp.java.sun.xml.general
Message-ID <[email protected]>
All:

import java.io.*;
import java.util.*;
import com.ms.xml.*;
      //  This is VJ++ 6.0 /msxml.dll (2.0)
   msxml.DOMDocument doc   = null;
    boolean xmlFlag           = false;

  public XParser(String xmlstr)
    {

                try {

                         doc = new msxml.DOMDocument();
                         doc.setAsync(false);


                         xmlFlag = doc.loadXML(xmlstr);    // xmlstr =
"test3.xml"   load xml file from my local disk.
                           if(xmlFalg)
  // it fail to load it.
                             {
                               mcount  = GetModemCount(doc);
                               ModemCount = mcount.toString();
                               numb = Integer.parseInt(ModemCount);
                            }

           } catch(Throwable t)
              {
                          t.printStackTrace();
               }
        }

     I try to load xml file from local disk, then the  java code
doesn't work.
     I have no idea why the code doesn't work.
     Can anyone shed some light on me ? thanks


Albert Pi
Corp IS System Delivery
516-803-3762

-----------------------------------------------------
xml-interest: A list for discussing XML technologies in the Java Platform.
To post, mailto:[email protected]
Archives at: http://archives.java.sun.com/xml-interest.html
To unsubscribe, mailto:[email protected] the following message;
signoff xml-interest.