--- In emacs-nxml-mode@xxxxxxxxxxxxxxx, Paulo Sequeira
<psequeira@xxxx> wrote:
> Adrian Robert wrote:
> >
> > On Mar 10, 2005, at 10:43 AM, Adrian Robert wrote:
> >
> >
> >>>I have some existing xml documents without any whitespace
between the
> >>>elements. I would like to load such a document (without a DTD or
> >>>schema) through an Emacs editor mode and run a command to format
the
> >>>xml document. I want to turn the giant one line of text into a
> >>>indented, color coded, tree-like structure for easy viewing.
> >>
> >>Haven't run nxml mode lately to check this works, but Ctrl-X,h ,
Meta-x
> >>'format-region' should do it.
> >
> >
> > Sorry, I meant 'indent-region'.
> >
>
> just tried this with a document (using nxml-20041004), and it seems
that
> it doesn't always break long lines with several elements. If it
works
> for somebody else, I'd like to know; meanwhile I'll still have to
resort
> to xmllint --format.
>
> Paulo
Thanks for the help, I'll probably just use xmllint --format. It was
quite painless when I ran it.
-Glenn
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> To unsubscribe from this group, send an email to:
emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|