HTML Tidy for XML Pretty Print

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

HTML Tidy for XML Pretty Print

Postby rra1027 » Wed Oct 25, 2006 12:22 pm

I have read all the forum topcs related to the HTML Tidy functionality in UE, and I just can't get the results I want. Can somebody help?

I am trying to pretty-print XML.

Here is the content of my Tidy configuration file, which I have saved as tidyConfigXML.txt:

// config file for HTML Tidy
indent: yes
input-xml: yes
output-xml: yes

Here is my sample XML file, which I type into UltraEdit and save as test.xml:

<?xml version="1.0" encoding="UTF-8"?>
<root><element>Testing</element></root>

I pull down Format|HTML Validation|HTML Tidy. I specify my configuration file and check Generate "tidy" document. I click Parse.

The output window responds with "HTML Tidy Parsing ...OK", but I get no *** HTML Tidy Output *** window, and my XML is not reformatted.
User avatar
rra1027
Newbie
 
Posts: 2
Joined: Tue Oct 24, 2006 11:00 pm

Re: HTML Tidy for XML Pretty Print

Postby Mofi » Wed Oct 25, 2006 2:56 pm

I don't edit or write XML files and so I have never user HTML Tidy for XML files. I think for XML files the XMLlint Tool support by UltraEdit since v12.00 is better. But don't ask me how to install and use the XMLlint Tool because I have never installed/used it.

See also XML Indent - Simple Solution Here

Use forum search with the words xml indent and the search option Search for all terms to and the 2 words (or use xml and indent with default search option) for other related topics.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: HTML Tidy for XML Pretty Print

Postby chapmx » Fri Oct 05, 2007 2:06 pm

Using HTML Tidy works for me with similiar config file but you need to select the SCROLL bar for "HTML Tidy Output" window and MOVE it before the screen redraws and displays the output!
User avatar
chapmx
Newbie
 
Posts: 1
Joined: Sun Aug 12, 2007 11:00 pm

Re: HTML Tidy for XML Pretty Print

Postby {xavier} » Wed Nov 21, 2007 5:22 pm

I've made a the following post in the scripts forum as an alternative means of pretty-printing your XML or for selectively formatting an XML fragment: Pretty-print XML
User avatar
{xavier}
Newbie
 
Posts: 3
Joined: Wed Nov 21, 2007 12:00 am


Return to Custom User Tools/Tool Configuration