Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Why get "this document already has a document element node"?

From: Rof <peterr@----.--.-->
To: NULL
Date: 12/8/2008 8:08:00 AM
On Dec 2, 11:47=A0am, Martin Honnen <mahotr...@yahoo.de> wrote:
> peterjro...@hotmail.co.uk wrote:
> > I get the error shown in the subject line when just doing "cfg.Load
> > (filename)".
>
> > Why??? What on earth does it mean?
>
> > I have checked that an XML document can be loaded repeatedly into the
> > same XMLdocument object, so it's not that.
>
> Please provide details of the object/APIs you use (e.g. .NET
> System.Xml.XmlDocument or MSXML or something) and of course of the XML
> you are trying to load.
>
> --
>
> =A0 =A0 =A0 =A0 Martin Honnen --- MVP XML
> =A0 =A0 =A0 =A0http://JavaScript.FAQTs.com/

Sure,

I am using a System.XML.XMLDocument. My XML is :

<network>
  <project status=3D"5">
    <name status=3D"5">My Project</name>
    <offset status=3D"5">0</offset>
    <start status=3D"5">25/11/2008</start>
    <end status=3D"5">31/12/2008</end>
    <client status=3D"5">Soil</client>
    <contact status=3D"5">dsf</contact>
    <clientno status=3D"5">1</clientno>
    <myno status=3D"5">1</myno>
    <desc status=3D"5">sdvsdv</desc>
    <folder status=3D"5">My Project</folder>
    <ftpsite status=3D"0">
    </ftpsite>
    <site status=3D"5">
      <name status=3D"5">My Site</name>
      <location status=3D"0">dfsdf</location>
      <number status=3D"0">1</number>
      <weblink status=3D"0">HTTP://www.itm-soil.com/Argus</weblink>
      <group status=3D"5">
        <name status=3D"5">DEFAULT GROUP</name>
        <id status=3D"5">1</id>
        <wm status=3D"5">
          <name status=3D"0">0x00000077</name>
          <sn status=3D"0">0x00000077</sn>
          <reptogw status=3D"0">0</reptogw>
          <lastread status=3D"0">never</lastread>
          <joined status=3D"0">2008-12-03 14:56:26</joined>
          <lastrep status=3D"5">116</lastrep>
          <lastrecno status=3D"5">64403</lastrecno>
          <lastseen status=3D"0">2008-12-03 16:10:36</lastseen>
          <battery status=3D"0">3.0756E-05</battery>
          <temp status=3D"0">23.23438</temp>
          <lastrecdate status=3D"0">0x239811D8</lastrecdate>
        </wm>
        <wm status=3D"5">
          <name status=3D"0">0x00000003</name>
          <sn status=3D"0">0x00000003</sn>
          <reptogw status=3D"0">0</reptogw>
          <lastread status=3D"0">never</lastread>
          <joined status=3D"0">2008-12-03 14:58:36</joined>
        </wm>
      </group>
      <gw status=3D"5">
        <name status=3D"5">G_1</name>
        <port status=3D"0">COM1</port>
        <id status=3D"0">1</id>
        <neighbours status=3D"0">255</neighbours>
        <hops status=3D"0">1</hops>
        <flags status=3D"0">0x0000</flags>
      </gw>
      <gw status=3D"5">
        <name status=3D"0">G_2</name>
        <port status=3D"0">COM1</port>
        <id status=3D"0">2</id>
      </gw>
    </site>
  </project>
</network>

It perhaps is not entirely conventional - it is a config file for my
app. It does get reloaded several times, as it can be updated by a
number of procedures and threads.


Thanks,
Peter Royle


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent