Reading xml that contains reference to xml’s
C#
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I would like to read the content of XML in c# I’ve main XML that contain several include to additional xml I’m trying to read nodes from main XML but I always got zero, In case I’m copy the sub XML content to main XML it work I know I can do include in XML another XML and it should be the same as writing the text in the same XML What could be the problem? See code below Main XML 4 SUB XML RX RX test on 2.5Ghz 250475000 C# code private XmlDocument m_xDoc; private XmlElement m_Root; m_xDoc = new XmlDocument(); m_xDoc.Load(m_mainXMLTest); m_Root = m_xDoc.DocumentElement; m_nodeItems = m_Root.GetElementsByTagName("test"); the problem is m_nodeItems.count = 0 Please advice Ronen