[Gambas-user] New XML component
Caveat
Gambas at ...1950...
Mon Apr 23 00:22:30 CEST 2012
Note that there are 3 possibilities in my project to test XML stuff.
Depending on what you set as the startup class, you can either try
converting XML to a treeview, viewing the XML in a dynamically-built GUI
or running a test suite which also applies changes to the XML once it's
in the internal model.
So the Form AllPurposeXMLEditor, the Form XMLToTreeView or the Module
Test can be set as the startup class.
If you need the Heroes.xml file for testing, it's still out there on
pastebin at http://pastebin.com/aR11N5uc and the wireless network xml is
also available at http://pastebin.com/4DGwdzYD
None of the 3 programs I have provided in the project work with the new
gb.xml!
Did you do *any* testing on the new gb.xml before committing it? The
fact it can't even open a simple XML file AND fails reading simple XML
from a String seems to indicate that very little testing went on...
Regards,
Caveat
On Sun, 2012-04-22 at 23:48 +0200, Caveat wrote:
> Nope, rev 4656 is not working with relative path (saved the xml as
> simple.xml in the project dir and referred to it as "simple.xml")... now
> it just fails silently giving wrong results, no error message any more.
>
> With absolute path is the same as before, still not working, silent
> failure with wrong results.
>
> Are you able to run my project? Will save us (errm ME) a lot of time if
> you just run that! First try it using gb.libxml to see what it *should*
> do, then try it with gb.xml until you get the same result... no?
>
> Regards,
> Caveat
>
> On Sun, 2012-04-22 at 18:07 +0200, Adrien Prokopowicz wrote:
> > Le dimanche 22 avril 2012 13:51:22 Caveat a écrit :
> > > If I put the xml file in the same dir as the project and reference it in
> > > a relative way, then it works perfectly (as expected) using gb.libxml.
> > > Using gb.xml I get an error "File or directory does not exist".
> > >
> > > Regards,
> > > Caveat
> > >
> > > On Sun, 2012-04-22 at 13:40 +0200, Fabien Bodard wrote:
> > > > 2012/4/22 Caveat <Gambas at ...1950...>:
> > > > > Still not working with rev 4655.
> > > > >
> > > > > Did you get a chance to test using the project I sent? It's quite clear
> > > > > that it works with gb.libxml but not with gb.xml.
> > > > >
> > > > > I wish this change had been introduced in a more careful manner, perhaps
> > > > > providing "gb.newxml" that we could transition to over time instead of
> > > > > just breaking existing projects.
> > > >
> > > > in fact it's a bug in the interpreter ... we can't access the file in the
> > > > projet>
> > > > > Regards,
> > > > > Caveat
> > > > >
> > > > > On Sun, 2012-04-22 at 12:40 +0200, Adrien Prokopowicz wrote:
> > > > >> Le dimanche 22 avril 2012 11:42:20 Caveat a écrit :
> > > > >> > It's not working for me.
> > > > >> >
> > > > >> > I have a project that builds an internal model of an xml file. the
> > > > >> > project is working fine with gb.libxml but doesn't work with gb.xml
> > > > >> > and
> > > > >> > gb.xml.xslt.
> > > > >> >
> > > > >> > The xml I am trying to parse is the following:
> > > > >> >
> > > > >> > <?xml version="1.0" encoding="ISO-8859-1"?>
> > > > >> > <!-- Edited by XMLSpy® -->
> > > > >> > <breakfast_menu>
> > > > >> >
> > > > >> > <food>
> > > > >> >
> > > > >> > <name>Belgian Waffles</name>
> > > > >> > <price>$5.95</price>
> > > > >> > <description>two of our famous Belgian Waffles with
> > > > >> > plenty of real
> > > > >> >
> > > > >> > maple syrup</description>
> > > > >> >
> > > > >> > <calories>650</calories>
> > > > >> >
> > > > >> > </food>
> > > > >> > <food>
> > > > >> >
> > > > >> > <name>Strawberry Belgian Waffles</name>
> > > > >> > <price>$7.95</price>
> > > > >> > <description>light Belgian waffles covered with
> > > > >> > strawberries and
> > > > >> >
> > > > >> > whipped cream</description>
> > > > >> >
> > > > >> > <calories>900</calories>
> > > > >> >
> > > > >> > </food>
> > > > >> > <food>
> > > > >> >
> > > > >> > <name>Berry-Berry Belgian Waffles</name>
> > > > >> > <price>$8.95</price>
> > > > >> > <description>light Belgian waffles covered with an
> > > > >> > assortment of fresh
> > > > >> >
> > > > >> > berries and whipped cream</description>
> > > > >> >
> > > > >> > <calories>900</calories>
> > > > >> >
> > > > >> > </food>
> > > > >> > <food>
> > > > >> >
> > > > >> > <name>French Toast</name>
> > > > >> > <price>$4.50</price>
> > > > >> > <description>thick slices made from our homemade
> > > > >> > sourdough
> > > > >> >
> > > > >> > bread</description>
> > > > >> >
> > > > >> > <calories>600</calories>
> > > > >> >
> > > > >> > </food>
> > > > >> > <food>
> > > > >> >
> > > > >> > <name>Homestyle Breakfast</name>
> > > > >> > <price>$6.95</price>
> > > > >> > <description>two eggs, bacon or sausage, toast, and our
> > > > >> > ever-popular
> > > > >> >
> > > > >> > hash browns</description>
> > > > >> >
> > > > >> > <calories>950</calories>
> > > > >> >
> > > > >> > </food>
> > > > >> >
> > > > >> > </breakfast_menu>
> > > > >> >
> > > > >> > The project is attached.
> > > > >> >
> > > > >> > I'll also carry on looking for why it's not working...
> > > > >> >
> > > > >> > Regards,
> > > > >> > Caveat
> > > > >> >
> > > > >> > On Sun, 2012-04-22 at 00:12 -0300, Sebastian Kulesz wrote:
> > > > >> > > Hi! I have added most of the missing pages for the gb.xml and
> > > > >> > > gb.xml.html documentation. I noticed that most of them where not
> > > > >> > > even
> > > > >> > > created. To the ones that seemed most relevant and important to the
> > > > >> > > end user, I added some information. To the rest (i.e. constants,
> > > > >> > > obvious properties or methods, etc.) I created empty pages for two
> > > > >> > > reasons. The first one is that the reader can now see the type of
> > > > >> > > the
> > > > >> > > required input/parameters and returned data of constants, methods
> > > > >> > > and
> > > > >> > > properties. The second one, is that if, for example, a method or a
> > > > >> > > property of a class is not documented (the page does not exist) it
> > > > >> > > makes it hard to read the full list of symbols as relative wiki
> > > > >> > > url's
> > > > >> > > are shown.
> > > > >> > >
> > > > >> > > IMHO, this should be done to every symbol for the reasons explained
> > > > >> > > above. Names would still be shown in italics, but if an user
> > > > >> > > without a
> > > > >> > > wiki account clicks on it, show the same data as a blank page
> > > > >> > > would.
> > > > >> > >
> > > > >> > >
> > > > >> > > On Sat, Apr 21, 2012 at 9:04 PM, Benoît Minisini
> > > > >> > >
> > > > >> > > <gambas at ...1...> wrote:
> > > > >> > > > Hi,
> > > > >> > > >
> > > > >> > > > Adrien Prokopowicz has rewrote the XML component, the old one
> > > > >> > > > being
> > > > >> > > > renamed as gb.libxml. Sorry for the surprise!
> > > > >> > > >
> > > > >> > > > Please report any problem or incompatibility. I am not a user of
> > > > >> > > > XML, I
> > > > >> > > > know the basic things only, so Adrien is the guy who will fix the
> > > > >> > > > problem and help you. :-)
> > > > >> > > >
> > > > >> > > > Regards,
> > > > >> > > >
> > > > >> > > > --
> > > > >> > > > Benoît Minisini
> > > > >> > > >
> > > > >> > > > -----------------------------------------------------------------
> > > > >> > > > -------
> > > > >> > > > ------ For Developers, A Lot Can Happen In A Second.
> > > > >> > > > Boundary is the first to Know...and Tell You.
> > > > >> > > > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> > > > >> > > > http://p.sf.net/sfu/Boundary-d2dvs2
> > > > >> > > > _______________________________________________
> > > > >> > > > Gambas-user mailing list
> > > > >> > > > Gambas-user at lists.sourceforge.net
> > > > >> > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > > >> > >
> > > > >> > > -------------------------------------------------------------------
> > > > >> > > -------
> > > > >> > > ---- For Developers, A Lot Can Happen In A Second.
> > > > >> > > Boundary is the first to Know...and Tell You.
> > > > >> > > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> > > > >> > > http://p.sf.net/sfu/Boundary-d2dvs2
> > > > >> > > _______________________________________________
> > > > >> > > Gambas-user mailing list
> > > > >> > > Gambas-user at lists.sourceforge.net
> > > > >> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > > > >>
> > > > >> The problem should be solved for absolute paths in the revision #4655.
> > > > >
> > > > > ------------------------------------------------------------------------
> > > > > ------ For Developers, A Lot Can Happen In A Second.
> > > > > Boundary is the first to Know...and Tell You.
> > > > > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> > > > > http://p.sf.net/sfu/Boundary-d2dvs2
> > > > > _______________________________________________
> > > > > Gambas-user mailing list
> > > > > Gambas-user at lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> > > ----------------------------------------------------------------------------
> > > -- For Developers, A Lot Can Happen In A Second.
> > > Boundary is the first to Know...and Tell You.
> > > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> > > http://p.sf.net/sfu/Boundary-d2dvs2
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> > Does it work with the revision #4656 ?
>
>
>
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list