Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Friday Tip...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Divers
Thread ID:
00794725
Message ID:
00794954
Vues:
19
>>>Ah! Hadn't looked too closely at that. Thanks for the heads up Claudio.
>>
>>You're more than welcome, George. :)
>
>Claudio,
>
>Well, I did finally RTFM< bg >, and it looks promising. However, I'm wondering if it's the best solution to the problem. It could be that the method currently being used is better. Here's the problem. BTW, neither of the .NET books I have mention the class, so it's time to buy some new books!< s >
>
>Anyway, what has to be done is build an XML string to populate the Web Treeview control. Using an array, it's easy to move back and forth between elements. It doesn't appear to be as easy using the StringBuilder class, unless, of course, there's something else I've missed in .NET.

StringBuilder is just a string concatenation class bascially so it's like a VFP string...

If you want an XML specific write look at the various subclasses of XmlWrite (XmlTextWriter most likely). It has high level methods for creating XML top to bottom that's very efficient.

Of course there's also the XmlDocument class that works like MSXML's DOM if the document is more complex and you need to move back and forth...

There's a good book on the XML features in .Net: Xml for ASp.Net developers by Dan Wahlin that is excellent both as a general XML reference and specifically for doing things with the .Net XML classes, without being an overwhelming tomb...
+++ 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