XML structure view

Display customization and font issues

XML structure view

Postby ThWiedmann » Wed Apr 18, 2007 9:03 am

Hello,

I have a xml file whose tags are arranged in 1 line without any line wrapping with CR/LF or LF. Some xml editors nevertheless display such an unstructured file with a usual xml structure.

Is it possible - and if yes, how - to display with UltraEdit 11.10+1 a file like
<xml><root-tag><next-tag> ...
with a xml strukture like
<xml>
<root-tag>
<next-tag> ...

Thanks for all good hints.

Thomas Wiedmann
User avatar
ThWiedmann
Basic User
Basic User
 
Posts: 17
Joined: Sun Jul 31, 2005 11:00 pm

Re: XML structure view

Postby Bego » Wed Apr 18, 2007 9:55 am

Hi,

look here: viewtopic.php?t=89

rds Bego
User avatar
Bego
Master
Master
 
Posts: 357
Joined: Wed Nov 24, 2004 12:00 am
Location: Germany

Re: XML structure view

Postby ThWiedmann » Thu Apr 19, 2007 8:00 am

Which is the exact link, where xmllint can be downloaded from? I didn't find the tool at http://xmlsoft.org/.

Thomas Wiedmann
User avatar
ThWiedmann
Basic User
Basic User
 
Posts: 17
Joined: Sun Jul 31, 2005 11:00 pm

Re: XML structure view

Postby Mofi » Thu Apr 19, 2007 10:40 am

http://xmlsoft.org/sources/win32/ which is on the xmlsoft downloads page. You can also download it from Libxml of Igor Zlatkovic as also mentioned on the xmlsoft downloads page.

But Xmllint is not a single EXE which you can download, install and run. It is a collection of libraries which must be installed and configured correct before it can be used like similar open source packages on Linux. This is described on the Libxml page of Igor Zlatkovic.

You should also know that built-in support of the Xmllint tool package was introduced with UE v12.10 where the UE users were also forced to download and install the necessary packages before they could use it. With currently latested UE v13.00a all necessary files for Xmllint support are not installed with UE for ready to use.

The files needed are: iconv.dll, libxml2.dll, xmllint.exe and zlib1.dll.

Please note: I have never used Xmllint because I don't edit XML files.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: XML structure view

Postby ThWiedmann » Mon Apr 23, 2007 12:23 pm

I installed libxml2-2.6.23.win32.zip by extracting the files in my programs directory by maintaining the paths. When I try to call C:\Programme\libxml2-2.6.23.win32\bin\xmllint.exe by double click, I only see a command console flashing up and immediately afterward disappearing again.

What may be the reason?
How to start and use libxml2?

Thomas Wiedmann
User avatar
ThWiedmann
Basic User
Basic User
 
Posts: 17
Joined: Sun Jul 31, 2005 11:00 pm

Re: XML structure view

Postby jorrasdk » Mon Apr 23, 2007 12:52 pm

It's a command line tool. Open a DOS window in the "C:\Programme\libxml2-2.6.23.win32\bin\" folder and run xmllint.exe. It will then list all the possible options.
These can also be seen at xmlsoft.org/xmllint.html

You will probably want to integrate it in UE as a tool. Check out Advanced menu / tool configuration - and study the UE help for more info.
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: XML structure view

Postby ThWiedmann » Mon Apr 23, 2007 2:19 pm

xmllint.exe ran now in the command console. But is there also an appropriate plugin for UltraEdit 11.10+1, which I can use to adapt the xml structure, displayed? If yes, where can I get it and how it is to install (and to configure)?

Thomas Wiedmann
User avatar
ThWiedmann
Basic User
Basic User
 
Posts: 17
Joined: Sun Jul 31, 2005 11:00 pm


Return to Editor Display