if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Calendar
Register
Login
XMetaL Community Forums
»
General
»
General XMetaL Discussion
»
Opening XML file and saving it changes the structure, why?
Pages:
1
« previous
next »
Print
Author
Topic: Opening XML file and saving it changes the structure, why? (Read 879 times)
neeirish
Member
Posts: 1
Opening XML file and saving it changes the structure, why?
«
on:
July 15, 2010, 09:19:00 AM »
I have a nice clean document with tags indented and structured so you can view them when you open your file. If I then open it in XMetal (6.0.1) and save it (that's all), XMetal puts everything into 4 lines that don't wrap. This makes it impossible to compare the original file with the changed file. It also removes about 1/4 of the size (probably spaces).
How can you set it NOT to do this?
xmetal_munch.jpg
(237.05 KB, 1239x919 - viewed 106 times.)
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member
Posts: 1552
Re: Opening XML file and saving it changes the structure, why?
«
Reply #1 on:
July 15, 2010, 02:13:16 PM »
You have two options with your XMetaL customization (DTD/XSD + CSS + CTM + MCR + other files):
1) Turn pretty printing off for your customization. In this case the product should retain any existing pretty printing (essentially carriage returns) included with the file when it was opened. Any new content should be added without adding pretty printing.
2) Configure pretty printing for your customization to match the pretty printing put in place by the other software you are using to work with your XML.
Pretty printing is controlled by settings in the CTM file. Documentation on this is included with XMetaL Developer and the CTM editor is included with that product as well.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...