public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Build-in XML support?
@ 2005-06-29 10:51 Ville Sundell
  2005-06-29 22:07 ` Chris Wedgwood
  2005-06-30  9:09 ` Ville Sundell
  0 siblings, 2 replies; 9+ messages in thread
From: Ville Sundell @ 2005-06-29 10:51 UTC (permalink / raw)
  To: linux-kernel

Hi!
I know, this maybe is F.A.Q, but I ask it anyway (because I have not found it
in kernel mail-list, so don't shot me!)  :

How about build-in XML-support to kernel?

Good or bad?

It would be wery useful for config-files? 
Yes, XML-format is big, an need disk space (that tag system needs
space), but it is easy to understand and it is standard way to format
data.

(...and I have a draft for small XML-parser in C-language;) )

-Ville Sundell

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-29 10:51 Build-in XML support? Ville Sundell
@ 2005-06-29 22:07 ` Chris Wedgwood
  2005-06-29 22:25   ` Michael Buesch
  2005-06-30  9:09 ` Ville Sundell
  1 sibling, 1 reply; 9+ messages in thread
From: Chris Wedgwood @ 2005-06-29 22:07 UTC (permalink / raw)
  To: Ville Sundell; +Cc: linux-kernel

On Wed, Jun 29, 2005 at 01:51:06PM +0300, Ville Sundell wrote:

> I know, this maybe is F.A.Q, but I ask it anyway (because I have not found it
> in kernel mail-list, so don't shot me!):

<bang>

> How about build-in XML-support to kernel?

What problem is this solving?

> Good or bad?

Utterly pointless

> It would be wery useful for config-files?

The kernel doesn't have config files, just knobs in proc/sysfs.

> (...and I have a draft for small XML-parser in C-language;) )

Maybe you can do this for Shillix?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-29 22:07 ` Chris Wedgwood
@ 2005-06-29 22:25   ` Michael Buesch
  2005-06-29 22:52     ` Chris Wedgwood
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Buesch @ 2005-06-29 22:25 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: linux-kernel, Ville Sundell

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

Quoting Chris Wedgwood <cw@f00f.org>:
> On Wed, Jun 29, 2005 at 01:51:06PM +0300, Ville Sundell wrote:
> 
> > I know, this maybe is F.A.Q, but I ask it anyway (because I have not found it
> > in kernel mail-list, so don't shot me!):
> 
> <bang>
> 
> > How about build-in XML-support to kernel?
> 
> What problem is this solving?
> 
> > Good or bad?
> 
> Utterly pointless
> 
> > It would be wery useful for config-files?
> 
> The kernel doesn't have config files, just knobs in proc/sysfs.
> 
> > (...and I have a draft for small XML-parser in C-language;) )

Search the archives.
There was a thread about this some time ago.
Tim Hockin talked about his XML parser there. I'm currently
using it (in a modified form) in some of my programs:

xmlparser.h:
http://websvn.kde.org/branches/pwmanager/1.2/pwmanager/pwmanager_dump/xmlparser.h?rev=416745&view=markup
xmlparser.c:
http://websvn.kde.org/branches/pwmanager/1.2/pwmanager/pwmanager_dump/xmlparser.c?rev=417577&view=markup

Sorry for the half-offtopic posting. :D

-- 
Greetings, Michael



[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-29 22:25   ` Michael Buesch
@ 2005-06-29 22:52     ` Chris Wedgwood
  2005-06-29 23:04       ` Michael Buesch
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Wedgwood @ 2005-06-29 22:52 UTC (permalink / raw)
  To: Michael Buesch; +Cc: linux-kernel, Ville Sundell

On Thu, Jun 30, 2005 at 12:25:03AM +0200, Michael Buesch wrote:

> Search the archives.
> There was a thread about this some time ago.

that doesn't make it a good idea

> Tim Hockin talked about his XML parser there.

> I'm currently using it (in a modified form) in some of my programs:

> xmlparser.h:
> http://websvn.kde.org/branches/pwmanager/1.2/pwmanager/pwmanager_dump/xmlparser.h?rev=416745&view=markup
> xmlparser.c:
> http://websvn.kde.org/branches/pwmanager/1.2/pwmanager/pwmanager_dump/xmlparser.c?rev=417577&view=markup

all this tells me is that some desktop application programmer wants to
put XML into the kernel

so far nobody has explain what problem(s) this solves or why it's a
good idea




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-29 22:52     ` Chris Wedgwood
@ 2005-06-29 23:04       ` Michael Buesch
  2005-06-29 23:07         ` Chris Wedgwood
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Buesch @ 2005-06-29 23:04 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: linux-kernel, Ville Sundell

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

Quoting Chris Wedgwood <cw@f00f.org>:
> On Thu, Jun 30, 2005 at 12:25:03AM +0200, Michael Buesch wrote:
> 
> > Search the archives.
> > There was a thread about this some time ago.
> 
> that doesn't make it a good idea

I did not say that. Indeed I say it's a bad idea.
And that was also the conclusion in the other thread I talked about.

I only gave this example here, because people often think
xml parsers are big with many lines of code. This one is only
about 500 lines. But still, please don't put such unneccessary
bloat into the kernel. ;)

> > xmlparser.h:
> > http://websvn.kde.org/branches/pwmanager/1.2/pwmanager/pwmanager_dump/xmlparser.h?rev=416745&view=markup
> > xmlparser.c:
> > http://websvn.kde.org/branches/pwmanager/1.2/pwmanager/pwmanager_dump/xmlparser.c?rev=417577&view=markup
> 
> all this tells me is that some desktop application programmer wants to
> put XML into the kernel

not me. ;)

-- 
Greetings, Michael



[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-29 23:04       ` Michael Buesch
@ 2005-06-29 23:07         ` Chris Wedgwood
  0 siblings, 0 replies; 9+ messages in thread
From: Chris Wedgwood @ 2005-06-29 23:07 UTC (permalink / raw)
  To: Michael Buesch; +Cc: linux-kernel, Ville Sundell

On Thu, Jun 30, 2005 at 01:04:54AM +0200, Michael Buesch wrote:

> I did not say that. Indeed I say it's a bad idea.

I'm confused as to the purpose of your posting then.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-29 10:51 Build-in XML support? Ville Sundell
  2005-06-29 22:07 ` Chris Wedgwood
@ 2005-06-30  9:09 ` Ville Sundell
  2005-06-30  9:17   ` Matti Aarnio
  2005-06-30 14:06   ` Ken Moffat
  1 sibling, 2 replies; 9+ messages in thread
From: Ville Sundell @ 2005-06-30  9:09 UTC (permalink / raw)
  To: linux-kernel

Sorry guys!
I say it wrong way, I mean:
Other programs would like use build-in and "standard" linux XML-parser.

It would make standard way to read xml-files in Linux?
Advertise speech:
    No more 1 000 different XML readers, only one, and people can
make it better :D

Michael Buesch, that source you paste, it is good, it is better than mine! :)

Comments please!
-Ville Sundell

PS. Thanks to all, for previous comments!
PS2. Sorry my bad bad english:)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-30  9:09 ` Ville Sundell
@ 2005-06-30  9:17   ` Matti Aarnio
  2005-06-30 14:06   ` Ken Moffat
  1 sibling, 0 replies; 9+ messages in thread
From: Matti Aarnio @ 2005-06-30  9:17 UTC (permalink / raw)
  To: Ville Sundell; +Cc: linux-kernel

On Thu, Jun 30, 2005 at 12:09:35PM +0300, Ville Sundell wrote:
> Sorry guys!
> I say it wrong way, I mean:
> Other programs would like use build-in and "standard" linux XML-parser.
> 
> It would make standard way to read xml-files in Linux?
> Advertise speech:
>     No more 1 000 different XML readers, only one, and people can
> make it better :D

And why should it be in KERNEL ?   You are writing in
Linux-Kernel -list about it, after all ?

Kernel sources do not carry things like glibc, on which all
applications do rely on rather heavily.  Why should there
be XML-support, which is not needed by all programs ?

> Michael Buesch, that source you paste, it is good, it is better than mine! :)
> 
> Comments please!
> -Ville Sundell

/Matti Aarnio

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build-in XML support?
  2005-06-30  9:09 ` Ville Sundell
  2005-06-30  9:17   ` Matti Aarnio
@ 2005-06-30 14:06   ` Ken Moffat
  1 sibling, 0 replies; 9+ messages in thread
From: Ken Moffat @ 2005-06-30 14:06 UTC (permalink / raw)
  To: Ville Sundell; +Cc: linux-kernel

On Thu, 30 Jun 2005, Ville Sundell wrote:

> Sorry guys!
> I say it wrong way, I mean:
> Other programs would like use build-in and "standard" linux XML-parser.
>

 Applications should be using whatever the libraries available to them
provide.  This does *not* belong in the kernel.

> It would make standard way to read xml-files in Linux?
> Advertise speech:
>     No more 1 000 different XML readers, only one, and people can
> make it better :D
>

 Diversity is good.  Competition between projects often benefits the end
users.  If you want to write a better XML parsing library, or to assist
one of the existing projects, please do so (after you have identified
whatever shortcomings you see in the existing choices) - but in
userspace.  And in userspace you will find that many potential users of
an xml parser are kernel-agnostic - they run on linux 2.2 or 2.4 (which
are in maintenance mode), BSDs, and others.

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-06-30 14:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-29 10:51 Build-in XML support? Ville Sundell
2005-06-29 22:07 ` Chris Wedgwood
2005-06-29 22:25   ` Michael Buesch
2005-06-29 22:52     ` Chris Wedgwood
2005-06-29 23:04       ` Michael Buesch
2005-06-29 23:07         ` Chris Wedgwood
2005-06-30  9:09 ` Ville Sundell
2005-06-30  9:17   ` Matti Aarnio
2005-06-30 14:06   ` Ken Moffat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox