зеркало из https://github.com/mono/mail-archives.git
109 строки
4.0 KiB
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:
|
|
><i> On Sun, 2003-10-05 at 14:52, Pablo Fischer wrote:
|
|
</I>><i> > Hello Miguel!
|
|
</I>><i> >=20
|
|
</I>><i> > Well Im creating something like that, cause I'm loading the xmlfile
|
|
</I>><i> > (LoadConfigFile) in a struct like this:
|
|
</I>><i> >=20
|
|
</I>><i> > private struct ConfigInfo {
|
|
</I>><i> > string username;
|
|
</I>><i> > string password;
|
|
</I>><i> > string url;
|
|
</I>><i> > string identifier;
|
|
</I>><i> > }
|
|
</I>><i> >=20
|
|
</I>><i> > So if the file exists I 'load' the file in a struct
|
|
</I>><i> >=20
|
|
</I>><i> > ConfigInfo[] configtmp =3D new ConfigInfo[node_username.Count];
|
|
</I>><i> >=20
|
|
</I>><i> > And then start 'saving' the xml data in the struct.=20
|
|
</I>><i> >=20
|
|
</I>><i> > Once I have the configtmp loaded I just use it every time I need some
|
|
</I>><i> > information. But what happens if the user wants to remove an account
|
|
</I>><i> You can use an array list so you can add/remove accounts (see the msdn
|
|
</I>><i> docs)
|
|
</I>><i> > or
|
|
</I>><i> > modify something (like the password)
|
|
</I>><i> you can modify the information
|
|
</I>><i> > , how can I save that to my xml
|
|
</I>><i> > file?
|
|
</I>><i> Reserialize it. Read the msdn docs.
|
|
</I>><i>=20
|
|
</I>><i> As well, both monologue and monodoc have some examples of Xml
|
|
</I>><i> Serialization, you may want to check them out.
|
|
</I>><i>=20
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Mono-list maillist - <A HREF="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</A>
|
|
</I>><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>
|