Menu

Bryce

2001-03-14
2001-08-10
  • Daniel Kong

    Daniel Kong - 2001-03-14

    Good Morning,
        This may affect you or not, just deals with a problem i had when
    using the ..... "using" statement.  Not really important, so just erase
    this if you do not want to think....

        Wanna apologize for my lack of work... but anyhows... i was
    tinkering with C#, and found a piece of code:

          XmlDocument XMLDoc = new XmlDocument();
          try {
            XMLDoc.Load(file);
          }
          catch (Exception e) {
          .....blah...
          }

    With the EXCEPTIONS of any typos... this is pretty acurate.  NOW,
    know(at least i believe so) that information is going to be stored and
    used -- at most part -- in XML.  so thought could find a class (or
    namespace that had those classes) that already read and parsed a file for
    XML.  "Understand" that we are making a parser checker and using such a
    premade file might be 'cheating"?"' ... ;p ....  (open source right?)

    ...boring you yet?

                                                      ***
    Heres the prob, please help if you may:
    using System.Xml;     Xml is not in namespace System.  Tried changing case
    on Xml and such and even tried using the csc /reference: thingy, changed
    paths in my enviro.. etc.  I believe there is a System.xml because

    1) Found a codes that use it.
    2) Found a directory with (what i assume to be) all the namespaces of C#.
       It also was the same directory that had the documentation on those
       namespaces... the ones that are created with XML inside the code.
       Making sense?
    3) Using the wincv thing to search the namespaces' for strings, it shows
       an interface(or whatever) of System.xml.

    Possible reasons:
      Messed up installation, my paths somehow are conflicting, i didn't erase
    the entire old installation, i muck up somewhere? Me not linking .dll on
    the csc command line correctly.. etc...

    ummmm... not asking anyone to go throught the hassel and solve this, just
    wondering if anyone else is 'importing' namespaces then are you running
    into any compiling (CS0234 or 6) problems?

     
    • boo haus

      boo haus - 2001-03-16

      well, i tried working out the problem in chapter 14, and i'm "using"

      using System;
      using System.Xml.Serialization;
      using System.Web.Services.Protocols;
      using System.Web.Services;

      and it's giving me errors on all of them.  i don't recall having any errors during the install, so i'm not sure what the problem is exactly.  hmm, will search the net for something.

       
      • Daniel Kong

        Daniel Kong - 2001-08-10

        test

         

Log in to post a comment.

MongoDB Logo MongoDB