Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XML node attribute vanishes
Message
From
24/12/2012 20:35:57
 
 
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01560521
Message ID:
01560588
Views:
43
>Well, you certainly shouldn't have to clone (assuming the XmlDocument and the NameSpaceManager do not change - but since the method references objects which are external it's a bit difficult to know what else might be going on.

oXmlDocument is initialized at one location. Then, I can use use at several locations. This is one method. I use it to select a single node. This goes in oXmlNode. Then, from oXmlNode, I would like to collect all attributes. This works well on the first run. But, without cloning, on the second run, something was mixing in memory.

oXmlAttributeCollection is only initialized here but it is not used so far. However, the RemoveAll() method might not have been best to initialize it. Maybe as mentioned in the other message I should have used an approach to set it to nothing.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform