tags:

views:

7

answers:

0

HI, I have the following input:

<p>Hi <span>you</span></p>

I'd like to treat this as XML.

I run Tidy on the cmd-line with the following options:

input-xml: yes 
output-xml: yes 
indent: no

My output is this:

<p>Hi 
<span>you</span></p>

However I'd like tidy to not pretty-print the xml. I'd like it to respect all white space, and not add that line break. I can't seem to find a way to output XML without pretty-printing. Anyone know how to do this?