473,320 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Gtkdialg accepts XML data that is not well-formed

Hello,

I just tried to get the example script of the
Gtkdialog tool running:

http://linux.pte.hu/~pipas/gtkdialog/

This tool claims to use an XML description of
a GUI and run it. Indeed, the example works.
What puzzles me is the fact that the example
is not well-formed XML:

<vbox>
<frame Print fields>
<hbox>
....

I used xmlwf and xmllint and both didnt eat this.
Anyway, Gtkdialog eats it. How can this work ?
Dec 20 '06 #1
3 1322
Jürgen Kahrs escribió:
Hello,

I just tried to get the example script of the
Gtkdialog tool running:

http://linux.pte.hu/~pipas/gtkdialog/

This tool claims to use an XML description of
a GUI and run it. Indeed, the example works.
What puzzles me is the fact that the example
is not well-formed XML:

<vbox>
<frame Print fields>
<hbox>
...

I used xmlwf and xmllint and both didnt eat this.
Anyway, Gtkdialog eats it. How can this work ?
Well, quoting the Gtkdialog docs:

"The dialog description language is a simple XML like language capable
to denote any complex dialog box containing widgets and boxes. "

So it doesn't claim to be XML, but just XML-like. Probably read with a
simple ad-hoc parser (not an XML compliant one). The source tarball
contains files like "gtkdialog_lexer.c", "gtkdialog_parser.c", etc.

Regards.
--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado
Dec 20 '06 #2
Hello Manuel,
>I used xmlwf and xmllint and both didnt eat this.
Anyway, Gtkdialog eats it. How can this work ?

Well, quoting the Gtkdialog docs:

"The dialog description language is a simple XML like language capable
to denote any complex dialog box containing widgets and boxes. "
Thanks for finding this out.
On their web page they introduce the first example
with the sentence.

The following shell script will load and execute a Glade XML file

So, I thought they really use XML files.
So it doesn't claim to be XML, but just XML-like. Probably read with a
simple ad-hoc parser (not an XML compliant one). The source tarball
contains files like "gtkdialog_lexer.c", "gtkdialog_parser.c", etc.
XML-like sounds nice, but it becomes useless when
I cannot parse it with a proper XML parser.
It is incomprehensible to me why someone should
define an XML-like format. Only Microsoft and IBM
can make money by adopting a standard in this way.
Dec 20 '06 #3
Jürgen Kahrs escribió:
Hello Manuel,
...
On their web page they introduce the first example
with the sentence.

The following shell script will load and execute a Glade XML file

So, I thought they really use XML files.
Well, it seems that Gtkdialog accepts two different input formats:

- True-XML glade files (option -g)
- XML-like Gtkdialog files (option -f)
...
XML-like sounds nice, but it becomes useless when
I cannot parse it with a proper XML parser.
It is incomprehensible to me why someone should
define an XML-like format. Only Microsoft and IBM
can make money by adopting a standard in this way.
Yes, it is hurtful (or at least confusing) to invent new file formats and
pretend they are similar and almost-compatible with well stablished
standards, when in fact they aren't.

Regards.
--
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado
Dec 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lucifer | last post by:
Hi I have some code for checking for cookies, that sets a cookie on page1 and checks for it on page2. and its based on the code by MS: ...
1
by: Kathryn Bean | last post by:
I am designing application where each node initiates connection with nodes and accepts connection with other nodes. This application will be running on Sun Unix platform. I think each node...
5
by: winbatch | last post by:
Hi, I'm trying to write a function that accepts a string of some kind (either char * or std::string) that can be passed something in printf semantics. For example: void test( string passedIn...
0
by: Egbert Nierop \(MVP for IIS\) | last post by:
Hi, I have a typed dataset, that is serialized using viewstate. Now when a user adds a new row from a certain grid, the new row is added to the typed dataset. The database TRANSACTION however,...
7
by: BS | last post by:
Hello everybody I'm calling a webservice that returns complex data. The goal is to populate a datagrid with it. Using a loop for each record found ( such as For i = 0 To...
8
by: dananrg | last post by:
Seems like most web hosting providers support MySQL, but not PostgreSQL. I need a web hosting account that supports PostgreSQL for a particular personal project I'm working on (as well as Python,...
24
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I see in javascript if a web browser accepts cookies?...
3
by: computer_guy | last post by:
Hi Everyone, I run into a problem. I am trying to write an aspx that can dynamically generate an image based on some input parameters. Things are very simple if the size of the parameters is...
2
by: sdanda | last post by:
Hai My textbox accepts only positive numbers.It doesnot accept even floating points also.How to this?I wrote this code //Code Dim neg As Integer = 0 If (Not IsNumeric(envno.Text)) Or...
16
by: Peng Yu | last post by:
Hi, I'm wondering if there is a min function (in boost, maybe?) that accepts any number of arguments? std::min only accepts two arguments. If I want to get the minimum number out of many, I have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.