Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??


Thanks, I just gave that a try, and it worked nicely for a non-reaped node. That'll give me what I'm looking for, 95% of the time.

However, I can't seem to make it work for a reaped node. I tried:;displaytype=xml

But in return I got:

<node id="1199455" title="Reaped: Re: .pl to .exe" created="2017-09-15 + 09:28:14" updated="2017-09-15 09:28:14"> <type id="11">note</type> <author id="52855">NodeReaper</author> <data> <field name="doctext"> This node was taken out by the [NodeReaper] on [localtime://2017-09-15 + 16-15-40]<BR>Reason: &#91;[hippo]]: Unformatted, without context and + apparently off-topic<p>You may view [href://?op=viewreaped;node_id=1 +199455|the original node and the consideration vote tally].</p> </field> <field name="root_node">288628</field> <field name="parent_node">288628</field> </data> </node>

So I tried changing it to:;node_id=1199455;displaytype=xml

And got:

<node id="53641" title="Visit Reaped Nodes" created="2001-01-23 00:08: +15" updated="2005-08-22 15:36:03"> <type id="14">superdoc</type> <author id="937169">InGoodGraces</author> </node>

Edit: on re-reading your reply, I looked for and found the XML link you mentioned. I hadn't noticed it. Unfortunately, it also fails on a reaped node.


When your only tool is a hammer, all problems look like your thumb.

In reply to Re^2: How to get raw node content by roboticus
in thread How to get raw node content by roboticus

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (2)
    As of 2018-07-21 17:57 GMT
    Find Nodes?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

      Results (449 votes). Check out past polls.