Click to See Complete Forum and Search --> : xml root element


Yato
01-02-2009, 11:31 AM
Hello, just two short questions...
the perl module xml::writer returns two errors, when it creates my xml file...

first, it says that the xml root element must match the doctype name, is this really true for every xml-file??
second, it says that the when the doctype attribut "public" is set, you also have to set the attribute "system", too. Is this always needed?

or just a problem with the configuration of xml::writer?

Greetings,
Yato

Charles
01-02-2009, 11:40 AM
Yes, Yes, and XML::Writer is fine, you're just using it wrong, I think.

Yato
01-02-2009, 11:44 AM
I don't get it, you say both things are needed, so why should the xml::writer module be wrong,
when it prints exactly what is wrong? that would mean that everything works fine...

Charles
01-02-2009, 11:56 AM
See http://search.cpan.org/~josephw/XML-Writer-0.606/Writer.pm .

Yato
01-02-2009, 12:00 PM
I know this site well, what exactly do you want to show me?

Charles
01-02-2009, 12:02 PM
The note that you have to include the system attribute when you set the public and the notes on how to turn on the warnings.

Posting your script might help.