Ah well. I'm Too Late.
I haven't tried it, but XML::AutoWriter (in particular XML::ValidWriter) on CPAN looks promising, corelyn.
Another linux option for writing general xml is psgml,
the sgml/xml mode for emacs. Actually, I guess that would work on any platform that ran emacs. Yay.
| [reply] |
Activestate hosts a
perl-xml list (and archives) w/ lots of good info and the
(quite possibly (and sadly) defunct) perlmonth mag
has lots of useful articles on perl/xml as does http://www.xml.com
for a few more hints.
a
| [reply] |
Do you mean with perl? If so, I haven't had much experience and can't help. Sorry. :-)
If not, shame on you for asking a non-perl question, and at your rank even. You should know better! :-)
Assuming you don't mean with perl, XML spy is one of the better tools available for windows. On the linux side of the OS wars, Merlot seems to have some potential.
Hope at least some of this helped.
| [reply] |
Ack sorry. (Sorry I can't believe I posted such a poorly worded question). I got hit from left field with this one and sent out a panic question. My apologies. I've got someone that would like me to write a tool that will take a DTD then create an template XML document from the definitions.
I've minimal XML expirience and I know XML::Parser would work on the XML doc, but would it work on the DTD?
coreolyn
Ack nevermind. They just found a commercial product... Damn there goes a nice project... grrr..
| [reply] |
- XML::Parser cannot work on DTD as DTD is not an XML document.
- XML::Parser cannot even validate XML document against DTD, because it's based on expat, which is non-validating XML parser.
- I cannot imagine how one can create 'template XML document' from DTD.
DTD specifies rules for document composition, but if tag <foo> can contain tags <foobar> and <foofoo>, will you create <foo><foobar> or <foo><foofoo> (or <foo><foobar/><foofoo/>)in this 'template' document?
- I can imagine GUI-based tool that will help you in authoring XML by supplying you with valid tags in your current context,
but if you are looking for something like this, you should at least specify OS/platform for such a tool.
BTW: If someaone know of such tool for Linux/Solaris, I will appreciate an URL.
| [reply] |