I notice xmlHack can validate and format the loaded xml text. Once formatted, however, the formatting stays. Sometimes you need to get rid of the formatting. Can an UnFormat command be added?
| Author | Comment | ||
|---|---|---|---|
RMittelman |
UnFormat Feature |
Lead | |
|
I notice xmlHack can validate and format the loaded xml text. Once formatted, however, the formatting stays. Sometimes you need to get rid of the formatting. Can an UnFormat command be added?
|
|||
Bryce K Nielsen |
Re: UnFormat Feature | ||
|
The problem is that the formatting appears to be bypassing the undo-buffer. Rather than a unformat feature, this is a bug that should simply allow you to undo the formatting. I've added it to our bug list and it will be addressed in the next patch.
-BKN |
|||
RMittelman |
Re: UnFormat Feature | ||
|
Good point. But I stand by my original comment. Consider this scenario: You get an xml file from wherever, and need to add to or change it. It's all on one line, so you format it, then add or change nodes as needed. Now, how do you undo the formatting without undoing the changes or additions? I agree, if you simply want to format, copy, then unformat, the undo would work. What's really needed is an UnFormat command, which removes all indenting and crlf's. If it was real smart, it could leave spaces between begin & end tags, or give that option (that wouldn't be essential IMHO).
|
|||
Bryce K Nielsen |
Re: UnFormat Feature | ||
|
Interesting, a "condense white-space" sort of feature. That's a doable feature, and shouldn't be too terribly difficult. The whole formatting needs to be redone anyways, it's OK, but doesn't work well with medium to large files. We'll redo them both at the same time...
-BKN |
|||