Author Topic: Console Command: XML output  (Read 431 times)

Ecnassianer

  • Sr. Member
  • ****
  • Posts: 126
    • Carpe Chaos
Console Command: XML output
« on: June 01, 2010, 02:06:46 am »
The console plugin is super useful for debugging.

It would be cool if there was a console command that printed the XML for the two currently visible pages (or any pages?).

This would be most useful when using auto-generated mz3 files that some other part of your website is making, or when dynamically adding chapters or pages through AS. It'd be helpful to see what XML is actually making it to megazine (or what XML actually made it to megazine, this time).

Admittedly, not the most common use case, but something to keep in mind either way.
See my megazine at CarpeChaos.com

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Console Command: XML output
« Reply #1 on: June 12, 2010, 04:52:38 pm »
Added in revision 439.
xml [all|n]
    Prints the XML definition of:
      all : the whole book.
      n   : the nth and n+1th pageside.
    If no parameter is given, equivalent to 'xml currentpage', where
    currentpage is the number of the current left page side.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.