Click here to Skip to main content
15,901,505 members

Comments by Marco Giglio (Top 4 by date)

Marco Giglio 27-Sep-23 3:23am View    
Forgive my English... maybe I can't explain myself well...
I figured out how to add a branch to the tree, but what I can't do is add nodes that have attributes instead of text. In the example file I posted, I can't get the following branches to appear:
<movie title="Fallen">, <movie title="Mad Max">, <movie title="Event Horizon">, and <movie title="The Postman">, but only child nodes that have text (such as example: <actor>Adam Sandler
Marco Giglio 26-Sep-23 12:01pm View    
Meanwhile, forgive my poor English... this listing does not give errors but shows the treeview only with the "text" nodes. However, I would also like to see those with attributes (Movie Title)
Marco Giglio 24-Sep-23 12:42pm View    
The error "System.InvalidCastException: 'Impossibile eseguire il cast di oggetti di tipo '<getelements>d__22`1[System.Xml.Linq.XElement]' sul tipo 'System.Xml.XmlNode'.'" is in the line:

Dim reader As XmlNodeReader = New XmlNodeReader(x)
Marco Giglio 24-Sep-23 12:23pm View    
Deleted
I have try but receive error:
System.InvalidCastException: 'Impossibile eseguire il cast di oggetti di tipo '<getelements>d__22`1[System.Xml.Linq.XElement]' sul tipo 'System.Xml.XmlNode'.'