Re: XML Editors?

2007-12-04 Thread Christopher Sawtell
 Try reading a page of XML and see what I mean.

It all depends on whether the author of the XML file, or more to the
point, the author of the generator which wrote the file, intended it
to be human readable or totally obfuscated.

For example this is my record in a GRAMPS genealogical database
expressed in XML:-
person id=I1 handle=_ade642516735718 change=1196237841
  genderM/gender
  name type=Birth Name
firstChristopher/first
lastSawtell/last
  /name
  eventref hlink=_ade6426c5ea7bc87637 role=Primary/
  eventref hlink=_ade6426d4b25e895e2d role=Primary/
  address
  datestr val=1943 to 1962/
  street28 Howard Walk, London N2./street
  /address
  address
  datestr val=1962 to 1966/
  streetVarious in England./street
  /address
  childof hlink=_ade64254d715fdfae15/
  parentin hlink=_ade64256e727586d29f/
  parentin hlink=_ade642516705f1618b0/
/person

And here is the record for my father:-
person id=I4 handle=_ade64254d9b3ebb728d change=1196024543
  genderM/gender
  name type=Birth Name
firstHerbert Victor/first
lastSawtell/last
  /name
  eventref hlink=_ade6427693c06d7ec85 role=Primary/
  eventref hlink=_ade64278035290de983 role=Primary/
  objref hlink=_ade6474aa2142335cb6/
  childof hlink=_ade64259a4e59c683f4/
  parentin hlink=_ade64254d715fdfae15/
/person

Notice how the childof hlink=_ade64254d715fdfae15/ in my record
corresponds to the parentin hlink=_ade64254d715fdfae15/ in my
father's record.

OK. This particular file is gzipped first, but after decompressing it,
it's all human readable as ASCII characters - granted only after a
fashon, but readable in any standard ASCII file display program, none
the less. i.e it's not encoded into some secret jumble. Essentially
that's what all the who-ha about OOXML is all about.



On 12/4/07, Nick Rout [EMAIL PROTECTED] wrote:
 But imagine converting any large piece of data into XML by writing it.

 Writing small config files by hand is fine, but basically you are
 looking at a system where it is designed to be read and written by a
 machine.

 Input config data into a gui config tool and it gets saved as XML.
 Receive a web request, look up a database and return the results as XML.
 XML is just a representation of the data. It is not designed to be read
 and written by you. Try reading a page of XML and see what I mean.

 Filters are a machine based parsing.

 Wesley Parish wrote:
  Not that I'm aware of.  The purpose of xml, as far as I know, is to make
  formatting a human-editable characteristic of whatever text it is used on.

  Or at least, that's one of its major purposes - another being to simplify
 the
  development of filters to edit text automatically and as part of a
 workflow.
 
  My 0.02c - no longer legal tender ... ;)
 
  Wesley Parish
 
  On Tuesday 04 December 2007 13:44, Nick Rout wrote:
 
  On Tue, December 4, 2007 12:50 pm, Zane Gilmore wrote:
 
  Any old text editor should do.
  I've found kate to do at least syntax highlighting.
 
 
  snip
 
  Isn't it the case that the purpose of xml is to be machine readable and
  writable, but its not really for human writing  reading - except in the
  simplest of cases?
 
 
 




-- 
Sincerely etc.
Christopher Sawtell


Re: XML Editors?

2007-12-04 Thread Nick Rout

Christopher Sawtell wrote:

Try reading a page of XML and see what I mean.



It all depends on whether the author of the XML file, or more to the
point, the author of the generator which wrote the file, intended it
to be human readable or totally obfuscated.

For example this is my record in a GRAMPS genealogical database
expressed in XML:-
person id=I1 handle=_ade642516735718 change=1196237841
  genderM/gender
  name type=Birth Name
firstChristopher/first
lastSawtell/last
  /name
  eventref hlink=_ade6426c5ea7bc87637 role=Primary/
  eventref hlink=_ade6426d4b25e895e2d role=Primary/
  address
  datestr val=1943 to 1962/
  street28 Howard Walk, London N2./street
  /address
  address
  datestr val=1962 to 1966/
  streetVarious in England./street
  /address
  childof hlink=_ade64254d715fdfae15/
  parentin hlink=_ade64256e727586d29f/
  parentin hlink=_ade642516705f1618b0/
/person

And here is the record for my father:-
person id=I4 handle=_ade64254d9b3ebb728d change=1196024543
  genderM/gender
  name type=Birth Name
firstHerbert Victor/first
lastSawtell/last
  /name
  eventref hlink=_ade6427693c06d7ec85 role=Primary/
  eventref hlink=_ade64278035290de983 role=Primary/
  objref hlink=_ade6474aa2142335cb6/
  childof hlink=_ade64259a4e59c683f4/
  parentin hlink=_ade64254d715fdfae15/
/person

Notice how the childof hlink=_ade64254d715fdfae15/ in my record
corresponds to the parentin hlink=_ade64254d715fdfae15/ in my
father's record.

OK. This particular file is gzipped first, but after decompressing it,
it's all human readable as ASCII characters - granted only after a
fashon, but readable in any standard ASCII file display program, none
the less. i.e it's not encoded into some secret jumble. Essentially
that's what all the who-ha about OOXML is all about.
  



With respect, you are confusing human readable with open.

That file is not readable by a human without very considerable effort. 
It is designed to be read by a machine and converted to something else 
to be read by you and me, or manipulated within the machine for another 
purpose (like inserting in a database). In that case the machine being 
a genealogical parser like GRAMPS. Another program with knowledge of the 
DTD could also read it, or produce it from a database, or format it for 
printing. Thats open not human readable. Show your XML to Charles 
Dickens or George Orwell or in fact the average man in the street and 
they will not understand it. Apply a CSS stylesheet and make it look 
like a printed page and you would make it human readable.


For someone who is clearly quite a stickler for the english language, it 
is surprising that you consider XML to be human readable. Human 
decipherable perhaps, open definitely (in the absence of binary blobs), 
but human readable a firm no!





Re: XML Editors?

2007-12-04 Thread John Rye
On Mon, 03 Dec 2007 23:15:44 +1300
Wesley Parish [EMAIL PROTECTED] wrote:

 Does anyone have any war stories about Linux FOSS XML editors?  (I'm teaching 
 myself XML, and need a validating XML editor for Linux.)  Furthermore, this 
 would make a good topic for next year's CLUG meetings.

Bit late in thread but look at this:

XMLmind XML Editor

http://www.xmlmind.com/xmleditor/

John



XML Editors?

2007-12-03 Thread Wesley Parish
Does anyone have any war stories about Linux FOSS XML editors?  (I'm teaching 
myself XML, and need a validating XML editor for Linux.)  Furthermore, this 
would make a good topic for next year's CLUG meetings.

Wesley Parish
-- 
Clinersterton beademung, with all of love - RIP James Blish
-
Gaul is quartered into three halves.  Things which are 
impossible are equal to each other.  Guerrilla 
warfare means up to their monkey tricks. 
Extracts from Schoolboy Howlers - the collective wisdom 
of the foolish.
-
Mau e ki, he aha te mea nui?
You ask, what is the most important thing?
Maku e ki, he tangata, he tangata, he tangata.
I reply, it is people, it is people, it is people.


Re: XML Editors?

2007-12-03 Thread Zane Gilmore

Any old text editor should do.
I've found kate to do at least syntax highlighting.

Although there is a KDE XML editor called... KXML Editor surprisingly.
I haven't done much with it as it's not all that good for largish xml files ( 
200MB)

I have found that I usually either create a program to output XML which I then 
check with
XMLLint (part of a package called XMLtools IIRC)
and a dtd that I write to define the XML or I am just using other peoples XML for a particular job, 
in which case I'm probably not going to be editing it.






Wesley Parish wrote:
Does anyone have any war stories about Linux FOSS XML editors?  (I'm teaching 
myself XML, and need a validating XML editor for Linux.)  Furthermore, this 
would make a good topic for next year's CLUG meetings.


Wesley Parish



--
__

Zane Gilmore: Analyst/Programmer
Cellphone: 0276 319 206
Telephone: +64-3 943 5447
Facsimile: +64-3 379 4886
Address: Level 1, 179 Tuam St, Christchurch, New Zealand
Post: PO Box 13300, Christchurch 8011, New Zealand

NZS.com : New Zealand Search

Web: http://www.nzs.com/
__


Re: XML Editors?

2007-12-03 Thread Michael JasonSmith
Much like Zane, I write documents using a normal text-editor (gedit, in
my case) and then use xmllint to verify that what I wrote is sane.

-- 
Michael JasonSmith http://onlinegroups.net/
Usability Engineer



Re: XML Editors?

2007-12-03 Thread Nick Rout

On Tue, December 4, 2007 12:50 pm, Zane Gilmore wrote:
 Any old text editor should do.
 I've found kate to do at least syntax highlighting.

 Although there is a KDE XML editor called... KXML Editor surprisingly.
 I haven't done much with it as it's not all that good for largish xml
 files ( 200MB)

 I have found that I usually either create a program to output XML which I
 then check with
 XMLLint (part of a package called XMLtools IIRC)
 and a dtd that I write to define the XML or I am just using other peoples
 XML for a particular job,
 in which case I'm probably not going to be editing it.



Isn't it the case that the purpose of xml is to be machine readable and
writable, but its not really for human writing  reading - except in the
simplest of cases?



-- 
Nick Rout



Re: XML Editors?

2007-12-03 Thread Gabriella Turek
TurboXML is great for designing and verifying schemas DTD and to  
subsequently create xml files. It's not exactly cheap though.

gaby



--

  http://www.chimere.org/  http://walbatross.blogspot.com

** Throw the radio up high / Watch us drown out half the sky  **
**   Synaesthesia coloured blue / Aquaman knows what to do**



Re: XML Editors?

2007-12-03 Thread Christopher Sawtell
http://www.google.com/search?q=IBM+XML+editorie=UTF-8oe=UTF-8

There you go! Dozens of choices.
Eclipse + plug-in when you are feeling lucky.


On 12/4/07, Gabriella Turek [EMAIL PROTECTED] wrote:
 TurboXML is great for designing and verifying schemas DTD and to
 subsequently create xml files. It's not exactly cheap though.
 gaby



 --
 
http://www.chimere.org/  http://walbatross.blogspot.com
 
 ** Throw the radio up high / Watch us drown out half the sky  **
 **   Synaesthesia coloured blue / Aquaman knows what to do**
 



-- 
Sincerely etc.
Christopher Sawtell


Re: XML Editors?

2007-12-03 Thread John Carter

On Mon, 3 Dec 2007, Wesley Parish wrote:


Does anyone have any war stories about Linux FOSS XML editors?  (I'm teaching
myself XML, and need a validating XML editor for Linux.)  Furthermore, this
would make a good topic for next year's CLUG meetings.



Personally I use emacs with psgml mode, although I occasionally use
kmlxeditor which has a nice XPATH url bar like thing.

Other handy tools are xmlstarlet for doing minitransforms.

REXML is a native ruby api for throwing xml around.


John Carter Phone : (64)(3) 358 6639
Tait ElectronicsFax   : (64)(3) 359 4632
PO Box 1645 ChristchurchEmail : [EMAIL PROTECTED]
New Zealand



Re: XML Editors?

2007-12-03 Thread Wesley Parish
Not that I'm aware of.  The purpose of xml, as far as I know, is to make 
formatting a human-editable characteristic of whatever text it is used on.  
Or at least, that's one of its major purposes - another being to simplify the 
development of filters to edit text automatically and as part of a workflow.

My 0.02c - no longer legal tender ... ;)

Wesley Parish

On Tuesday 04 December 2007 13:44, Nick Rout wrote:
 On Tue, December 4, 2007 12:50 pm, Zane Gilmore wrote:
  Any old text editor should do.
  I've found kate to do at least syntax highlighting.
 
snip
 Isn't it the case that the purpose of xml is to be machine readable and
 writable, but its not really for human writing  reading - except in the
 simplest of cases?

-- 
Clinersterton beademung, with all of love - RIP James Blish
-
Gaul is quartered into three halves.  Things which are 
impossible are equal to each other.  Guerrilla 
warfare means up to their monkey tricks. 
Extracts from Schoolboy Howlers - the collective wisdom 
of the foolish.
-
Mau e ki, he aha te mea nui?
You ask, what is the most important thing?
Maku e ki, he tangata, he tangata, he tangata.
I reply, it is people, it is people, it is people.


XML Editors

2002-10-10 Thread Ryurick M. Hristev

Hello all,

Could anyone recommend a good XML editor ? (with comments)

(my idea of good would be first open source and well maintained)

Or pointers ? (from what I've dug up there are either too many
or too few)

TIA

Cheers,
-- 
Ryurick M. Hristev mailto:[EMAIL PROTECTED]
Computer Systems Manager
University of Canterbury, Physics  Astronomy Dept., New Zealand




Re: XML Editors

2002-10-10 Thread Michael JasonSmith

On Fri, 2002-10-11 at 16:11, Ryurick M. Hristev wrote:
 Could anyone recommend a good XML editor ? (with comments)
Personally, I use PSGML-mode in XEmacs.  Not everyones favourite editor,
sorry.  The reasons?  
  o I know emacs, 
  o It parses the DTD and gives me a list of valid tags or 
attributes when I right-click, 
  o C-/ closes the currently open tag, and
  o It has syntax highlighting.

To view XML files I use less, or XML-View in Nautilus-2:
http://personales.ciudad.com.ar/godiard/
-- 
Michael JasonSmith  http://www.cosc.canterbury.ac.nz/~mpj17/



Re: XML Editors

2002-10-10 Thread James Grant

The Kate editor in KDE3 has an XML plugin with it. There's a newer version 
of this plugin available at http://www.danielnaber.de/tmp/

Plus there's a write-up about using the plugin that comes with KDE3 here: 
http://www.linuxfocus.org/English/May2002/article201.shtml

This newer version of the plugin will be included in KDE 3.1 when that 
arrives. Basically it takes an DTD parsed by an app called DTDParse, 
mentioned in the article above, and shows like code-completion type pop-ups 
as you type, plus it can close tags with a keyboard shortcut etc.

The older version doesn't bring up those pop-ups, you have to bring up a 
window to see the tags.

There's a slight bug in the the newer version of the plugin in that the 
pop-ups won't appear if you go re-edit something you've already typed, that's 
fixed in the KDE 3.1 version I believe.

There's also some plugin that interfaces with xmllint coming in KDE 3.1 too.

On Fri, 11 Oct 2002 16:11, Ryurick M. Hristev wrote:
 Could anyone recommend a good XML editor ? (with comments)

 (my idea of good would be first open source and well maintained)

 Or pointers ? (from what I've dug up there are either too many
 or too few)
-- 
James.