[Mono-dev] XML - not sure if I've got this right

Petit Eric surfzoid at gmail.com
Tue Sep 9 18:58:55 EDT 2008


2008/9/10 Petit Eric <surfzoid at gmail.com>:
> Hi
> I have writted some XML clas (Read/Write cs) for MonoOSC, perhap's you
> can have a look on it if it can help yu :
> http://monoosc.svn.sourceforge.net/viewvc/monoosc/MonoOSC/MonoOSCFramework/Class/
I forget this, i also build the doc in VS style :
http://monoosc.sourceforge.net/Doc/html/
>
> Le 10 septembre 2008 00:40, Paul <paul at all-the-johnsons.co.uk> a écrit :
>> Hi,
>>
>> I have a small routine which takes a name and group and then reads an
>> XML file. The code is this
>>
>> public string dotheread(string ident, int group)
>> {
>>        XmlReaderSettings settings = new XmlReaderSettings();
>>        XmlReader reader = XmlReader.Create(conpath, settings, null);
>>
>>        string retval = "";
>>
>>        Console.WriteLine("version = {0}, ident = {1}", group, ident);
>>
>>        switch (group)
>>        {
>>                case 0:
>>                        reader.MoveToAttribute("rawhide");
>>                        break;
>>                case 1:
>>                        reader.MoveToAttribute("current");
>>                        break;
>>                case 2:
>>                        reader.MoveToAttribute("previous");
>>                        break;
>>        }
>>
>> It then does a read and looks up the element name. For some reason
>> though, MoveToAttribute does not seem to be working correctly (it's only
>> sticking on "rawhide").  The Console.WriteLine shows the parameters
>> being passed in are fine.
>>
>> The configure.xml file is correctly set up
>>
>> <?xml version="1.0"?>
>> <configure>
>>        <rawhide>
>>                        <Name>rawhide</Name>
>>                        <Branch>devel</Branch>
>>                        <Koji>dist-f10</Koji>
>>                        <KojiAdditional>devel#</KojiAdditional>
>>        </rawhide>
>>        <current>
>>                        <Name>Fedora 9</Name>
>>                        <Branch>F-9</Method>
>>                        <Koji>dist-f9-updates-candidate</Koji>
>>                        <KojiAdditional>F-9#HEAD</KojiAdditional>
>>        </current>
>>        <previous>
>>                        <Name>Fedora Core 8</Name>
>>                        <Branch>F-8</Method>
>>                        <Koji>dist-f8-updates-candidate</Koji>
>>                        <KojiAdditional>F-8#HEAD</KojiAdditional>
>>        </previous>
>> </configure>
>>
>> I'm at a loss as to what's going on.
>>
>> Using 2.0 RC 1 on fedora rawhide.
>>
>> TTFN
>>
>> Paul
>> --
>> Sie können mich aufreizen und wirklich heiß machen!
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
>
>
> --
>
> Cordially.
>
> Small Eric Quotations of the days:
> ---------------------------------------------------------------------------
> If one day one reproaches you that your work is not a work of
> professional, say you that:
> Amateurs built the arch of Noah, and professionals the Titanic.
> ---------------------------------------------------------------------------
>
> Few people are done for independence, it is the privilege of the powerful ones.
> ---------------------------------------------------------------------------
>
> No key was wounded during the drafting of this message.
>



-- 

Cordially.

Small Eric Quotations of the days:
---------------------------------------------------------------------------
If one day one reproaches you that your work is not a work of
professional, say you that:
Amateurs built the arch of Noah, and professionals the Titanic.
---------------------------------------------------------------------------

Few people are done for independence, it is the privilege of the powerful ones.
---------------------------------------------------------------------------

No key was wounded during the drafting of this message.


More information about the Mono-devel-list mailing list