On 13 Mar, 12:35, "Nikhil R. Bhandari" <nikhilbhand...@hotmail.com>
wrote:
> Still getting the same error for line 1
>
> Cannot convert value "System.Object[]" to type "System.Xml.XmlDocument".
> Error: "'>' is an unexpected token. The expected token is '"' or '''. Line
> 1, position 58." At line:1 char:28
> + [xml]$FileContents <<<< = Get-Content -read 10kb "C:\test.xml"
>
> "Jean" <repon...@groupe.svp> wrote in message
>
> news:mn.6b527d73069f0c24.56820@windows...
>
>
>
> >> It is not parsing the <!DOCTYPE QXML PUBLIC '-//ABC//DTD XML QBD
> >> 2.0//EN'> line. If I remove this then the XML is properly read.
>
> > doctype *must be* the first line
>
> > regards,
>
> > --
> > Jean - JMST
> > Belgium- Hide quoted text -
>
> - Show quoted text -
Should you use " rather than ' in Doctype?
Try <!DOCTYPE QXML PUBLIC "-//ABC//DTD XML QBD 2.0//EN">