Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: XML::Twig generating invalid XHTML output??

by Tanktalus (Canon)
on Feb 14, 2005 at 17:38 UTC ( #430870=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML::Twig generating invalid XHTML output??
in thread XML::Twig generating invalid XHTML output??

The answer to your question of "why" depends on how deep of an answer you're looking for.

On the deepest level, I'm not even going to pretend to look at the XML::Twig code (or any of the miriad of levels of code under it). So, no, no ideas why from that level.

From a higher, XML::Twig-is-a-black-box level, how I got this answer was from playing with the code. First thing I did was comment out the twig_print_outside_roots => 1, line. That showed me the reason why you put it in in the first place: all of a sudden, everything outside of the body tag stopped being printed. That gave me the idea to try adding a new root such that everything would be in it - then you don't have anything outside of the roots (so that line is no longer really needed... I think). Since 'html' is the root of everything, I figured it would be the appropriate root to use. At this point, the question is: what do we want to do with that root. The answer is simple: nothing. And that's what I told perl: do nothing.

Does that help answer the question?

Replies are listed 'Best First'.
Re^4: XML::Twig generating invalid XHTML output??
by nick (Sexton) on Feb 14, 2005 at 17:56 UTC
    Sure did! Thanks again!
    
    - Nick
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2023-03-29 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (71 votes). Check out past polls.

    Notices?