What parser are you using?
By the way, your XML is not well formated, since you are not closing the
tag all_config with /.
I tested it well formated and root is not added. If you use the HTML parser
(not well formated) it will load the comment as a TAG, so, there isn't a
root node and root is added when the XML is generated again.
Regards,
Graciliano M. P.
Show quoted text----- Original Message -----
From: "Guest via RT" <bug-XML-Smart@rt.cpan.org>
To: <undisclosed-recipients:>
Sent: Tuesday, February 22, 2005 12:33 PM
Subject: [cpan #11619] Unrecognition of remarks at the beginning of the XML
file
>
> This message about XML-Smart was sent to you by guest <> via rt.cpan.org
>
> Full context and any attached attachments can be found at:
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=11619 >
>
> Hi.
> I'm using the XMLSmart to load our XML file. I have a root node named
<all_config>. The beginning of the XML file is :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--Sample XML file generated by XMLSPY v2004 rel. 4 U
(
http://www.xmlspy.com)-->
xsi:noNamespaceSchemaLocation="S:\B67\SCS\src\App\ConfDir\sca_config.xsd">
> After I save all the changes I made in the XML file, XMLSmart add <root>
node before the <all_config> node. That causes us a problem.
> Why doesn't the XMLSmart recognize the second line as remarks and see that
there is a root node ???
>
> Of course, I check without the remarks and everything went smoothly.
> I hope to hear from you very soon.
> Thanks, Asher.
>
> BTW, your application is a killer one. Great job.
>
> E-mail classificado pelo Identificador de Spam Inteligente Terra.
> Para alterar a categoria classificada, visite
>
http://www.terra.com.br/centralunificada/emailprotegido/imail/imail.cgi?+_u=
gmpowers&_l=1,1109086273.840828.30371.rucuru.terra.com.br,2695,Des15,Des15
>
> Esta mensagem foi verificada pelo E-mail Protegido Terra.
> Scan engine: McAfee VirusScan / Atualizado em 21/02/2005 / Versão:
4.4.00 - Dat 4431
> Proteja o seu e-mail Terra:
http://www.emailprotegido.terra.com.br/
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.3.0 - Release Date: 21/2/2005
>
>
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.3.0 - Release Date: 21/2/2005