Click here to Skip to main content
14,575,378 members
   

XML / XSL

 
GeneralRe: How Do I deserialize the following Xml string? Pin
Stuart Dootson23-Feb-10 20:27
professionalStuart Dootson23-Feb-10 20:27 
GeneralRe: How Do I deserialize the following Xml string? Pin
ashishtango24-Feb-10 18:35
Memberashishtango24-Feb-10 18:35 
QuestionAccessing a image from a xml file and display in visual studio picture box Pin
kpuneeth722-Feb-10 21:15
Memberkpuneeth722-Feb-10 21:15 
AnswerRe: Accessing a image from a xml file and display in visual studio picture box Pin
Richard MacCutchan22-Feb-10 22:31
mveRichard MacCutchan22-Feb-10 22:31 
Questionxsd to entity [modified] Pin
pokiri22-Feb-10 17:45
Memberpokiri22-Feb-10 17:45 
AnswerRe: xsd to entity Pin
Not Active22-Feb-10 21:01
mentorNot Active22-Feb-10 21:01 
QuestionHow to delete duplicate nodes from XML throgh C#? Pin
deadlyabbas18-Feb-10 19:12
Memberdeadlyabbas18-Feb-10 19:12 
QuestionProblem with MSXML6 + namespace + XPath Pin
Patrice Espie18-Feb-10 4:57
MemberPatrice Espie18-Feb-10 4:57 
Hi All,

I try to use MSXML with xml files which contains namespaces. But I can't figure out how to do!

Here is an excerpt of my XML file:

<?xml version="1.0" encoding="utf-8"?>
<BENCH xmlns:VODPC_VOD="urn:VODPC:VOD:schema:20060809">
<VODPC_VOD:GRAPH state="running" currentFlowID="1" removeOnExit="FALSE">
</VODPC_VOD:GRAPH>
</BENCH>

When I load the file with MSXML6, no problem.
I try to access node BENCH with XPath "/BENCH" : no problem.
But when I try to access node VODPC_VOD:GRAPH with XPath "/BENCH/VODPC_VOD:GRAPH", I get an exception, which contain no valuable information:

First-chance exception at 0x75ac9617 in XXXXXX.exe: 0xE0000001: 0xe0000001.
First-chance exception at 0x75ac9617 in XXXXXX.exe: 0xE0000001: 0xe0000001.
First-chance exception at 0x75ac9617 in XXXXXX.exe: 0xE0000001: 0xe0000001.
First-chance exception at 0x75ac9617 in XXXXXX.exe: 0xE0000001: 0xe0000001.
First-chance exception at 0x75ac9617 in XXXXXX.exe: Microsoft C++ exception: _com_error at memory location 0x0025dac4..

I set these flags before to load:

m_pXMLDoc->async = VARIANT_FALSE;
m_pXMLDoc->preserveWhiteSpace = VARIANT_TRUE;
m_pXMLDoc->validateOnParse = VARIANT_TRUE;
m_pXMLDoc->resolveExternals = VARIANT_TRUE;

As you can understand, I work in C++. I'm an IT profesionnal since 18 year.

My problem is that I do not know what namespace is used in the file, so I don't want to have to tell MSXML6 what namespaces are used IN THE FILE. I guess it's its job, no ?

If anybody have an idea ...
Thanks a lot

Patrice
AnswerRe: Problem with MSXML6 + namespace + XPath Pin
Stuart Dootson23-Feb-10 0:10
professionalStuart Dootson23-Feb-10 0:10 
QuestionProblem with loading a xml to DataSet Pin
alireza_shokoie15-Feb-10 23:42
Memberalireza_shokoie15-Feb-10 23:42 
AnswerRe: Problem with loading a xml to DataSet Pin
daveyerwin18-Feb-10 2:51
Memberdaveyerwin18-Feb-10 2:51 
QuestionXSL help Pin
Member 39976067-Feb-10 0:13
MemberMember 39976067-Feb-10 0:13 
AnswerRe: XSL help Pin
Stuart Dootson7-Feb-10 1:09
professionalStuart Dootson7-Feb-10 1:09 
QuestionUsing MSXML2.ServerXMLHTTP.4.0 and ASP Pin
tommywick656-Feb-10 4:49
Membertommywick656-Feb-10 4:49 
QuestionXSL import another XSL on Client-Side. Pin
yeob4-Feb-10 20:22
Memberyeob4-Feb-10 20:22 
AnswerRe: XSL import another XSL on Client-Side. Pin
daveyerwin5-Feb-10 4:19
Memberdaveyerwin5-Feb-10 4:19 
GeneralRe: XSL import another XSL on Client-Side. Pin
yeob7-Feb-10 19:04
Memberyeob7-Feb-10 19:04 
GeneralRe: XSL import another XSL on Client-Side. Pin
daveyerwin8-Feb-10 3:39
Memberdaveyerwin8-Feb-10 3:39 
AnswerRe: Newbie question - can't figure out xsl Pin
Not Active4-Feb-10 6:54
mentorNot Active4-Feb-10 6:54 
AnswerRe: Newbie question - can't figure out xsl Pin
Richard MacCutchan4-Feb-10 6:57
mveRichard MacCutchan4-Feb-10 6:57 
QuestionSAOP Question Pin
cmpemikail1-Feb-10 23:38
Membercmpemikail1-Feb-10 23:38 
AnswerRe: SAOP Question Pin
SeMartens2-Feb-10 20:27
MemberSeMartens2-Feb-10 20:27 
GeneralImporting COM dll from unix Pin
tom groezer1-Feb-10 0:42
Membertom groezer1-Feb-10 0:42 
GeneralRe: Importing COM dll from unix Pin
Stuart Dootson1-Feb-10 3:03
professionalStuart Dootson1-Feb-10 3:03 
GeneralRe: Importing COM dll from unix Pin
tom groezer2-Feb-10 2:04
Membertom groezer2-Feb-10 2:04 

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.