Click here to Skip to main content
15,904,415 members
Home / Discussions / C#
   

C#

 
AnswerRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Dave Kreskowiak15-Oct-14 2:18
mveDave Kreskowiak15-Oct-14 2:18 
GeneralRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Member 245846715-Oct-14 16:10
Member 245846715-Oct-14 16:10 
GeneralRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Dave Kreskowiak15-Oct-14 17:23
mveDave Kreskowiak15-Oct-14 17:23 
AnswerRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Gerry Schmitz15-Oct-14 10:07
mveGerry Schmitz15-Oct-14 10:07 
GeneralRe: unable to register the dll/ocx regsvr32 failed with exit code 0x4 Pin
Dave Kreskowiak15-Oct-14 11:09
mveDave Kreskowiak15-Oct-14 11:09 
Questionexcel listview c# Pin
Kalay1614-Oct-14 23:33
Kalay1614-Oct-14 23:33 
SuggestionRe: excel listview c# Pin
Eddy Vluggen15-Oct-14 9:00
professionalEddy Vluggen15-Oct-14 9:00 
GeneralRe: excel listview c# Pin
Kalay1619-Oct-14 20:36
Kalay1619-Oct-14 20:36 
GeneralRe: excel listview c# Pin
Eddy Vluggen20-Oct-14 1:57
professionalEddy Vluggen20-Oct-14 1:57 
GeneralRe: excel listview c# Pin
Kalay1620-Oct-14 2:54
Kalay1620-Oct-14 2:54 
GeneralRe: excel listview c# Pin
Eddy Vluggen20-Oct-14 5:27
professionalEddy Vluggen20-Oct-14 5:27 
GeneralRe: excel listview c# Pin
Kalay1620-Oct-14 20:50
Kalay1620-Oct-14 20:50 
GeneralRe: excel listview c# Pin
Eddy Vluggen21-Oct-14 2:25
professionalEddy Vluggen21-Oct-14 2:25 
GeneralRe: excel listview c# Pin
Kalay1621-Oct-14 2:59
Kalay1621-Oct-14 2:59 
GeneralRe: excel listview c# Pin
Eddy Vluggen21-Oct-14 5:35
professionalEddy Vluggen21-Oct-14 5:35 
GeneralRe: excel listview c# Pin
Kalay1621-Oct-14 8:13
Kalay1621-Oct-14 8:13 
GeneralRe: excel listview c# Pin
Eddy Vluggen22-Oct-14 5:24
professionalEddy Vluggen22-Oct-14 5:24 
GeneralRe: excel listview c# Pin
Kalay1622-Oct-14 18:20
Kalay1622-Oct-14 18:20 
GeneralRe: excel listview c# Pin
Kalay1622-Oct-14 18:20
Kalay1622-Oct-14 18:20 
GeneralRe: excel listview c# Pin
Eddy Vluggen24-Oct-14 1:39
professionalEddy Vluggen24-Oct-14 1:39 
GeneralRe: excel listview c# Pin
Kalay1624-Oct-14 10:23
Kalay1624-Oct-14 10:23 
GeneralRe: excel listview c# Pin
Eddy Vluggen27-Oct-14 9:01
professionalEddy Vluggen27-Oct-14 9:01 
QuestionXML Serialization, Xpath and SelectNodes Pin
Member 1093483614-Oct-14 22:11
Member 1093483614-Oct-14 22:11 
Hello,

I face some challenges and would appreciate help in finding out how to handle it.

I am using XML serialization to save some data of an application. However, I would like to use the same XML file in a different application. I do not want to de-serialize the file; I just read it with XmlDoc.

The reading part of it works fine, however, in my other application I would like to execute same SelectNodes+Xpath queries - that's the problem. Any query, I do, doesnt work for some reason.

Here an example of my XML file:

XML
<?xml version="1.0" encoding="utf-8"?>
<TestProject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Test">
  <DicKeysWhichDirectlyReferenceMe xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <IsCurrentlyLoading>false</IsCurrentlyLoading>
  <IsLoaded>false</IsLoaded>
  <IsProcessing>false</IsProcessing>
  <ListsWhichDirectlyReferenceMe xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <ObjectsWhichDirectlyReferenceMe xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <name>UnknownTypeName</name>
  ...


A query like this just works, but doesnt bring a big benefit for course...!
XmlDocument doc = new XmlDocument();
doc.Load("test.xml");
XmlNode node = doc.ChildNodes[1];
XmlNodeList list = doc.SelectNodes("*");


However, a query like this doesnt work:
XmlNodeList list = doc.SelectNodes("IsLoaded");
XmlNodeList list1 = doc.SelectNodes("/IsLoaded");
XmlNodeList list2 = doc.SelectNodes("//IsLoaded");


I was already trying many things, inc. adding some namespaces, but I wasnt successful.

Again, I would be thankful for any help!

thanks and best regards
AnswerRe: XML Serialization, Xpath and SelectNodes Pin
Gerry Schmitz15-Oct-14 10:43
mveGerry Schmitz15-Oct-14 10:43 
QuestionC # application launch problem by connecting with a database Informix ODBC. Pin
Ibrahim.elh14-Oct-14 20:47
Ibrahim.elh14-Oct-14 20:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.