Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XmlDom
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Re: XmlDom
Divers
Thread ID:
00862540
Message ID:
00862669
Vues:
14
Hi Marcus,

As Bonnie says XmlDocument is what you want - it has the standard XML DOM interface, although somethings (like errors) work differently.

The XmlDocument will throw exceptions if the document fails to load or parse and you'll have to parse the exceptions for any parse errors. Haven't done that part of it, but otherwise the XmlDoc works pretty much like the MSXML versoin (but it's much more efficient!).

You can also use the MSXML parser externally by importing the COM object as a reference. Wouldn't do that though since perf is bad...


+++ Rick ---



>Hi,
>
>I am still trying around a bit and I fell over the XMLDOM. What is the way to get it instantiated in a C# method? I added a reference to the msxml4.0 COM Component, but I there don't get XMLDOM as an object.
>Only DOMDocument. This one seems not to have all Properties e.g. Item ?
>
>Has anyone got an idea what I am doing wrong? I am not really deep in this stuff but from FoxPro I can just instanciate
>
>
>o = createobject("Microsoft.XMLDOM")
>
>
>I am trying just to do the same in C#?
>Or is there a XML Class that encapsulates the DOM (including parseError Collection...)
>
>Marcus
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform