mail-archives/mono-list/2003-October/016145.html

109 строки
4.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-list] Modify XML Docs (part 2)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:pablo%40pablo.com.mx">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="016144.html">
<LINK REL="Next" HREF="016149.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-list] Modify XML Docs (part 2)
</H1>
<B>Pablo Fischer
</B>
<A HREF="mailto:pablo%40pablo.com.mx"
TITLE="[Mono-list] Modify XML Docs (part 2)">pablo@pablo.com.mx
</A><BR>
<I>Sun, 05 Oct 2003 15:37:41 -0500</I>
<P><UL>
<LI> Previous message: <A HREF="016144.html">[Mono-list] Modify XML Docs
</A></li>
<LI> Next message: <A HREF="016149.html">[Mono-list] Modify XML Docs
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16145">[ date ]</a>
<a href="thread.html#16145">[ thread ]</a>
<a href="subject.html#16145">[ subject ]</a>
<a href="author.html#16145">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Uhm..=20
After sending the last reply I think in that option..=20
1. Load the xml file like you and Miguel says
2. Work in the array list with add/remove
3. After closing the app (delete_event), creates the new xml file
Is it a good idea?
Thanks!
El dom, 05-10-2003 a las 14:44, Ben Maurer escribi=F3:
&gt;<i> On Sun, 2003-10-05 at 14:52, Pablo Fischer wrote:
</I>&gt;<i> &gt; Hello Miguel!
</I>&gt;<i> &gt;=20
</I>&gt;<i> &gt; Well Im creating something like that, cause I'm loading the xmlfile
</I>&gt;<i> &gt; (LoadConfigFile) in a struct like this:
</I>&gt;<i> &gt;=20
</I>&gt;<i> &gt; private struct ConfigInfo {
</I>&gt;<i> &gt; string username;
</I>&gt;<i> &gt; string password;
</I>&gt;<i> &gt; string url;
</I>&gt;<i> &gt; string identifier;
</I>&gt;<i> &gt; }
</I>&gt;<i> &gt;=20
</I>&gt;<i> &gt; So if the file exists I 'load' the file in a struct
</I>&gt;<i> &gt;=20
</I>&gt;<i> &gt; ConfigInfo[] configtmp =3D new ConfigInfo[node_username.Count];
</I>&gt;<i> &gt;=20
</I>&gt;<i> &gt; And then start 'saving' the xml data in the struct.=20
</I>&gt;<i> &gt;=20
</I>&gt;<i> &gt; Once I have the configtmp loaded I just use it every time I need some
</I>&gt;<i> &gt; information. But what happens if the user wants to remove an account
</I>&gt;<i> You can use an array list so you can add/remove accounts (see the msdn
</I>&gt;<i> docs)
</I>&gt;<i> &gt; or
</I>&gt;<i> &gt; modify something (like the password)
</I>&gt;<i> you can modify the information
</I>&gt;<i> &gt; , how can I save that to my xml
</I>&gt;<i> &gt; file?
</I>&gt;<i> Reserialize it. Read the msdn docs.
</I>&gt;<i>=20
</I>&gt;<i> As well, both monologue and monodoc have some examples of Xml
</I>&gt;<i> Serialization, you may want to check them out.
</I>&gt;<i>=20
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</A>
</I>--=20
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
<A HREF="http://www.pablo.com.mx">http://www.pablo.com.mx</A>
<A HREF="http://www.debianmexico.org">http://www.debianmexico.org</A>
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: <A HREF="http://www.pablo.com.mx/firmagpg.txt">http://www.pablo.com.mx/firmagpg.txt</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="016144.html">[Mono-list] Modify XML Docs
</A></li>
<LI> Next message: <A HREF="016149.html">[Mono-list] Modify XML Docs
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#16145">[ date ]</a>
<a href="thread.html#16145">[ thread ]</a>
<a href="subject.html#16145">[ subject ]</a>
<a href="author.html#16145">[ author ]</a>
</LI>
</UL>
</body></html>