I've been using and looking to use even more the node query XML generator, which is wonderful (thank you, vroom). use seems to be like this:
and you get back some XML, like this:http://www.perlmonks.org/index.pl?node_id=37150&nodes=81921,87392,8522 +2
I note that currently, the following seem to be all the attributes available for any particular node:<NEWESTNODES><INFO site="http://perlmonks.org" sitename="Perl Monks">R +endered by the Node query XML Generator</INFO> <NODE nodetype="user" author_user="81921" node_id="81921" createtime=" +20010521060818">Vynce</NODE> <NODE nodetype="monkdiscuss" author_user="81921" node_id="87392" creat +etime="20010611020434">the state of perlmonks' perldocs</NODE> <NODE nodetype="note" author_user="81921" node_id="85222" createtime=" +20010602212719" parent_node="85220">Re: Re: Will/Can Perl 6 clean up +the bit-wise operator precedence mess?</NODE> </NEWESTNODES>
- nodetype
- presumably something about the type of node -- they're shortened forms of the categories we know (e.g., "monkdiscuss" for "Perl Monks Discussion"), and generally pretty easy to decipher though, as far as i know, there is not, anywhere, a key to them. perhaps this would be wise, but it's not strictly necessary. Note that nodetype "user" indicates a monk's homenode (or the monk herself) and anything which is a reply to something else is a "note".
- author_user
- the author's homenode's node_id, which serves as a unique identifier for the monk himself.
- node_id
- unsurprisingly, the node ID number of the node.
- createtime
- the time at which the node was created. this is a long string of numbers, but it is not epoch time -- it is 'YYYYMMDDhhmmss' format. this is relatively easy for humans to read. it seems to be in UTC or perlmonks server time.
- parent_node
- if the node is a reply to another node, this attribute will exist and be the node_id of that other node.
This is all wonderful and really great and shiny, but i notice that there are things available from perlmonks that are not in this little bit of XML; for instance, the content of the node, but that's perhaps excusable. The two new things that i would like to have passed in the XML are:
- replies
- whether this is just the number of replies, or actually a list of the replies, this would be vaguely useful.
- top_ancestor
- this is the one i really want. if you go to a node in perlmonks which is a reply to another node, you'll see (probably in the upper right corner, though i suppose you could use bizarre style sheets) a pair of links: "In reply to: ..." and "In thread: ...". what i humbly request of he who makes things go is that "in thread" node_id.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: request for another attribute of nodes in XML (node query, newest nodes, etc)
by ZZamboni (Curate) on Jun 14, 2001 at 03:09 UTC | |
(tye)Re: request for another attribute of nodes in XML (node query, newest nodes, etc)
by tye (Sage) on Jun 14, 2001 at 21:51 UTC | |
Re: request for another attribute of nodes in XML (node query, newest nodes, etc)
by Vynce (Friar) on Jun 15, 2001 at 06:21 UTC | |
by vroom (His Eminence) on Jun 15, 2001 at 07:11 UTC |
Back to
Perl Monks Discussion