473,503 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML editor using only indentation for nesting?

I'm very new to XML, and have only spent about
10 minutes looking for something I already know
I want. Pardon me if the availability of what
I want is common knowledge among XML cognoscenti.

My subject line doesn't really do justice to
my meaning.

What I want is an editor for XML that displays
XML with a lot less redundancy.

For example, the XML snippet as follows

=========================
<configuration-file>
<section name="section1">
<entry name="name1" value="value1"/>
<entry name="name2" value="value2"/>
</section>
<section name="section2">
<entry name="someothername" value="someothervalue"/>
</section>
</configuration-file>
=========================

would be rendered in the hypothetical editor
pane somewhat like this:

=========================
configuration-file
section name="section1"
entry name="name1" value="value1"
name="name2" value="value2"
section name="section2"
entry name="someothername" value="someothervalue"
=========================

Two points I'd like to make clear:

(1) I mean something *like* this, not *exactly*
like this. I'm flexible. Really. ;-)

(2) I don't want to hear about how I should
really read and write straight XML, how
it's good for my soul, how I won't really
understand XML if I don't read and write
XML using standard syntactic conventions, how
I'm trying to turn XML into some other
language, or into a new language, or into
COBOL, or whatever, or how existing XML
editors, with their color-codings and
input helpers, make reading and writing
XML "as easy" as what I'm thinking of, after
I "get used to it", etc., etc.,

So that you don't waste keystrokes explaining
the unnecessary: I studied computer science
at a decent school, have programmed in C, C++
Lisp, and various other languages, and my
career in software spans several decades,
including work in integrated circuit design
tools and format converters for them. I even
hand a small hand in defining an electronic
design interchange format (EDIF 1.0) that was
somewhat somewhat in the spirit of XML,
though different in syntax. In short, I may
be an XML newbie, but I'm far from a newbie
when it comes to many of the issues XML
seems to address.

Even from what little I've read about XML,
I can see that it affords considerable leverage.
It's just that I'm not sold on reading and
writing raw XML (except for self-tutorial
purposes) if I don't have to. (If I *do*
have to, I'd appreciate knowing why, despite
my whiny and defensive disclaimer point #2,
above.)

This is just a request for information:
is there something like what I want out
there somewhere? If there isn't, is there
a good reason why not?

If this is colossally boring issue for this
forum, but you still want to help me, a reply
by private e-mail would be greatly appreciated.

Thanks in advance,
Michael Turner
le**@gol.com

Jul 20 '05 #1
1 1226
le**@gol.com wrote:
I'm very new to XML, and have only spent about
10 minutes looking for something I already know
I want. Pardon me if the availability of what
I want is common knowledge among XML cognoscenti.

My subject line doesn't really do justice to
my meaning.

What I want is an editor for XML that displays
XML with a lot less redundancy.
See the notes on editors in the FAQ at
http://xml.silmaril.ie/developers/software/
For example, the XML snippet as follows [...] would be rendered in the hypothetical editor
pane somewhat like this:

=========================
configuration-file
section name="section1"
entry name="name1" value="value1"
name="name2" value="value2"
section name="section2"
entry name="someothername" value="someothervalue"
=========================
Are you looking for a plaintext editor or a synchronous typographical editor
(what people call "GUI" or "WYSIWYG" or "graphical" editors)?

I don't know any plaintext editor that can hide the pointy brackets and the
slashes, although you could probably write some elisp to make Emacs do it
in xxml-mode.

"Graphical" editors certainly display the markup in symbolic form, usually
in the form of blocks or pointers of various shapes and colours, and they
can hide them completely (which is what makes people refer to these editors
as "WYSIWYG"). Some (like epcEdit) can control the amount of information
shown in the graphical tags, so this might be what you want
(www.epcedit.com)
(2) I don't want to hear about how I should
really read and write straight XML, how
it's good for my soul, how I won't really
understand XML if I don't read and write
XML using standard syntactic conventions, how
I'm trying to turn XML into some other
language, or into a new language, or into
COBOL, or whatever, or how existing XML
editors, with their color-codings and
input helpers, make reading and writing
XML "as easy" as what I'm thinking of, after
I "get used to it", etc., etc.,
OK. So you only want it *displayed* like the above. Presumably you're
happy that the underlying file remains syntactically intact and correct.
Even from what little I've read about XML,
I can see that it affords considerable leverage.
It's just that I'm not sold on reading and
writing raw XML (except for self-tutorial
purposes) if I don't have to. (If I *do*
have to, I'd appreciate knowing why, despite
my whiny and defensive disclaimer point #2,
above.)
No problem. It sounds as if you're just looking for a graphical editor
rather than a plaintext one. Unfortunately (modulo my comments above),
most of them just let you hide all markup or reveal all markup, rather
than a selective reveal like you describe.
This is just a request for information:
is there something like what I want out
there somewhere? If there isn't, is there
a good reason why not?


If you weren't aware such things existed, of course, you wouldn't have been
able to ask the question -- in this case it would immeasurably help those of
us who write the documentation if you could let me know (by email if
necessary) where you looked for this information and didn't find it, so we
can update the doc with more useful stuff.

///Peter
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2778
by: Frances | last post by:
at work we switched to UTF-16 encoding and now when I open html files in HomeSite the code is all messed up, and if I turn on "enable non-ANSI file encoding" code looks fine when I open files but I...
24
2521
by: John Salerno | last post by:
This is a real small point, but I'd like to hear what others do in this case. It's more an 'administrative' type question than Python code question, but it still involves a bit of syntax. One...
19
2145
by: saurabh.ss | last post by:
I want a C++ editor for Linux that resembles Microsoft Visual Studio's integrated editor. I mean it should have features like auto-completion, auto-indentation and syntax highlighting. Also it...
19
1709
by: Sam | last post by:
A friend of mine is picking up some Python and is frustrated by Python's indentation rules (http://greatbiggary.livejournal.com/ 260460.html?thread=1835884#t1835884). Personally, I've never had...
0
1701
by: Rick King | last post by:
Hi everyone, The editor in spe on my system (win XP home sp2) does not do automatic indentation..... I can't figure out why - it used to. I'm set up with subversion so I have the very latest stuff...
8
5016
by: Red | last post by:
If auto-format is turned off in VS2008, there is apparently no way to indent a line. Under Tools->Options->Text Editor->C#->Formatting, there are three checkboxes. Unchecking those seems to cause...
18
2816
by: Nick Keighley | last post by:
On 4 Jul, 15:26, Hallvard B Furuseth <h.b.furus...@usit.uio.nowrote: what's wrong with that?! wouldn't replacing spaces with tabs do that? Were disks ever *that* small? I've worked on...
1
1672
by: Eric S. Johansson | last post by:
in trying to make programming in Python more accessible to disabled programmers (specifically mobility impaired speech recognition users), and hitting a bit of a wall. The wall (for today) is...
0
1199
by: Almar Klein | last post by:
Hi Eric, First of all, I like your initiative. I'm not sure if I undestand you correctly, but can't you just increase indentation after each line that ends with a colon? That's how I do it in...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
402
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.