Skip to contentSkip to conversation

Build-in XML support?

DISCUSSION Ville Sundell 5 participants 9 messages Jun 29, 2005 – Jun 30, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 2 lines · Ville Sundell

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>

Quoted 1 line

How about build-in XML-support to kernel?

What problem is this solving?

Quoted 1 line

Good or bad?

Utterly pointless

Quoted 1 line

It would be wery useful for config-files?

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

Quoted 1 line

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

Maybe you can do this for Shillix?

#2 lore raw

Quoting Chris Wedgwood <[email protected]>:

Quoted 11 lines · Ville Sundell
Quoted 3 lines

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>

Quoted 1 line

How about build-in XML-support to kernel?

What problem is this solving?

Quoted 9 lines
Quoted 1 line

Good or bad?

Utterly pointless

Quoted 1 line

It would be wery useful for config-files?

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

Quoted 1 line

(...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

Signature · 1 line
Greetings, Michael
#3 lore raw
Quoted 2 lines · Michael Buesch

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

that doesn't make it a good idea

Quoted 8 lines

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

#4 lore raw

Quoting Chris Wedgwood <[email protected]>:

Quoted 6 lines · Michael Buesch
Quoted 3 lines

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. ;)

Quoted 7 lines
Quoted 4 lines

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. ;)

Signature · 1 line
Greetings, Michael
#5 lore raw
Quoted 1 line · Michael Buesch

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

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

#6 lore raw
In reply to Ville Sundell

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:)

#7 lore raw
Quoted 8 lines · Ville Sundell

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 ?

Quoted 4 lines

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

Comments please!
-Ville Sundell

/Matti Aarnio

#8 lore raw
In reply to Ville Sundell
Quoted 4 lines · Ville Sundell

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.

Quoted 5 lines

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

Signature · 1 line
 das eine Mal als Tragödie, das andere Mal als Farce