Click here to Skip to main content

XML / XSL

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: How Do I deserialize the following Xml string? Pinmemberashishtango19:35 24 Feb '10  
QuestionAccessing a image from a xml file and display in visual studio picture box Pinmemberkpuneeth722:15 22 Feb '10  
AnswerRe: Accessing a image from a xml file and display in visual studio picture box PinmvpRichard MacCutchan23:31 22 Feb '10  
Questionxsd to entity [modified] Pinmemberpokiri18:45 22 Feb '10  
AnswerRe: xsd to entity PinsupporterMark Nischalke22:01 22 Feb '10  
QuestionHow to delete duplicate nodes from XML throgh C#? Pinmemberdeadlyabbas20:12 18 Feb '10  
QuestionProblem with MSXML6 + namespace + XPath PinmemberPatrice.Espie5:57 18 Feb '10  
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 PinmvpStuart Dootson1:10 23 Feb '10  
QuestionProblem with loading a xml to DataSet Pinmemberalireza_shokoie0:42 16 Feb '10  
AnswerRe: Problem with loading a xml to DataSet Pinmemberdaveyerwin3:51 18 Feb '10  
QuestionXSL help PinmemberMember 39976061:13 7 Feb '10  
AnswerRe: XSL help PinmvpStuart Dootson2:09 7 Feb '10  
QuestionUsing MSXML2.ServerXMLHTTP.4.0 and ASP Pinmembertommywick655:49 6 Feb '10  
QuestionXSL import another XSL on Client-Side. Pinmemberyeob21:22 4 Feb '10  
AnswerRe: XSL import another XSL on Client-Side. Pinmemberdaveyerwin5:19 5 Feb '10  
GeneralRe: XSL import another XSL on Client-Side. Pinmemberyeob20:04 7 Feb '10  
GeneralRe: XSL import another XSL on Client-Side. Pinmemberdaveyerwin4:39 8 Feb '10  
QuestionMessage Removed Pinmemberajester67:50 4 Feb '10  
AnswerRe: Newbie question - can't figure out xsl PinsupporterMark Nischalke7:54 4 Feb '10  
AnswerRe: Newbie question - can't figure out xsl PinmvpRichard MacCutchan7:57 4 Feb '10  
QuestionSAOP Question Pinmembercmpemikail0:38 2 Feb '10  
AnswerRe: SAOP Question PinmemberSeMartens21:27 2 Feb '10  
GeneralImporting COM dll from unix Pinmembertom groezer1:42 1 Feb '10  
GeneralRe: Importing COM dll from unix PinmvpStuart Dootson4:03 1 Feb '10  
GeneralRe: Importing COM dll from unix Pinmembertom groezer3:04 2 Feb '10  

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

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


Advertise | Privacy | Mobile
Web01 | 2.5.120210.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid