Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Adding a field to the XML nodetype

by jepri (Parson)
on Jun 20, 2003 at 03:58 UTC ( [id://267451]=monkdiscuss: print w/replies, xml ) Need Help??

Looking at the XML nodetype, it seems to me to be a great way to write a application frontend to the monastery. Since I've been teaching myself enlightenment 17 (which has a perl interface), I thought it would be cool to make a good looking frontend using that library.

However the XML nodetype does not include a list of ids for the replies to the node being viewed.

This was obliquely touched on in another node (which I have since lost th elink to), where someone suggested it just for root nodes. The explaination given there was that it would add extra load to the database. But it shoudn't be too much extra load, because the same query has to be performed when building a webpage for that node.

If the webpage query pulled the node text of the children at the same time, then that should be possible to incorporate in the XML reply (multiple node tags).

So.. can I have this feature please? It would allow us to point to perlmonks as an example of cutting edge internet-deployed XML client-server architecture (or whatever the phrase is today). If that doesn't tweak your interest, think of the nifty things a program could do with perlmonks nodes.

____________________
Jeremy
I didn't believe in evil until I dated it.

Replies are listed 'Best First'.
Re: Adding a field to the XML nodetype
by theorbtwo (Prior) on Jun 20, 2003 at 04:11 UTC

    If you mean the XML displaytype (IE what you get by appeneding ;displaytype=xml to the URL of a node), I'm afraid that isn't going to happen anytime soon. The reason is that it would require pretty well completely reworking the code that does the XML displaytype. The code is designed to give out fields of the node, and the list of replies isn't one of those fields.

    Sorry.

    You can get the information you're looking for, however, from xml node thread; see What XML generators are currently available on PerlMonks?.


    Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

      Fantastic! That's what I'm looking for. Shame that I'll have to do multiple queries, but I guess that hits PM worse than me.

      ____________________
      Jeremy
      I didn't believe in evil until I dated it.

Re: Adding a field to the XML nodetype
by PodMaster (Abbot) on Jun 20, 2003 at 06:18 UTC
    I believe you should check out E2::Interface and borrow some ideas (E2 is http://everything2.com which is also running on everything).

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://267451]
Approved by dorko
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-19 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found