Shoutbox

Bug in XML Parsing - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: Bug in XML Parsing (/showthread.php?tid=64122)

Bug in XML Parsing by matty on 07-28-2006 at 06:07 AM

I am not sure if this is a bug or if its a limitation.

Take these two pieces of code each just arranged differently.

code:
                <Color><GlobalColor>ref</GlobalColor></Color>
                <Font>
                    <Bold>True</Bold>
                    <Size>12</Size>
                </Font>

code:
                <Font>
                    <Bold>True</Bold>
                    <Size>12</Size>
                </Font>
                <Color><GlobalColor>ref</GlobalColor></Color>

Now by looking at both of these they look the same and would provide the same effect. However that is incorrect. The latter of these two examples will set ONLY the colour not the font style the first example will change the colour and as well change the font style. If this is a limitation ok however if its a bug the way Plus! creates the Windows then it needs to be fixed.
RE: Bug in XML Parsing by Patchou on 07-29-2006 at 05:49 PM

This is not a bug or a limitation, this is simply how XML fiels linked to schemas work. Most element childs in my schemas are sequences which means that the elements must be declared in order. In case of doubt, always try to validate your xml file against the xsd before feeding it to Messenger Plus! :)