Click here to Skip to main content
15,914,481 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionAttribute value choking parser? Pin
SigEpUCI16-Aug-02 17:07
SigEpUCI16-Aug-02 17:07 
AnswerRe: Attribute value choking parser? Pin
Michael A. Barnhart17-Aug-02 9:48
Michael A. Barnhart17-Aug-02 9:48 
AnswerRe: Attribute value choking parser? Pin
Zdenek Navratil21-Aug-02 3:04
Zdenek Navratil21-Aug-02 3:04 
GeneralXPath query Pin
Jan R Hansen15-Aug-02 5:00
Jan R Hansen15-Aug-02 5:00 
GeneralRe: XPath query Pin
Christopher Lord15-Aug-02 7:27
Christopher Lord15-Aug-02 7:27 
GeneralRe: XPath query Pin
Jan R Hansen15-Aug-02 22:13
Jan R Hansen15-Aug-02 22:13 
GeneralRe: XPath query Pin
Philip Fitzsimons16-Aug-02 0:28
Philip Fitzsimons16-Aug-02 0:28 
QuestionWhat wrong with this clause?? Pin
Tida13-Aug-02 9:51
Tida13-Aug-02 9:51 
Dear all,
I try to select node from a XML file:
but always failed: there are nodes in the file
but the select result are no.
What wrong with my code or the structure/name of my XML file?

my code:
--------------------------
MSXML::IXMLDOMDocumentPtr pDoc = NULL;
MSXML::IXMLDOMElementPtr root;
MSXML::IXMLDOMNodePtr userParent, userNode;
MSXML::IXMLDOMNodeListPtr userList;

root = pDoc->documentElement;
userParent=root->selectSingleNode(_bstr_t("Users"));
strServer="gmitc-data3";
strVolume="d:\Shared Volume";
temp=strServer+"\\"+strVolume;
userList=userParent->selectNodes(_bstr_t\
("User[@Class1Root='"+temp+"']"));
for( int k=0; k<userList->Getlength(); k++)
{
m_nCount++;
userNode=userList->Getitem(k);
strUser=(LPCTSTR)_bstr_t(userNode->attributes\
->getNamedItem(_bstr_t("Name"))->text);
m_Grid.SetRows(m_nCount+1);
m_Grid.SetTextArray(m_nCols*m_nCount+2,strUser);
}// end for(userList)


---------------------------
my xml file:
---------------------------
<?xml version="1.0"?>"
<DMadmin>
<Class1BkupServer>
<Server Name="gmitc-data3" Full="No">
<SharedVolume Vol="d:\Shared Volume" Full="No"/>
</Server>
</Class1BkupServer>
<Class2BkupServer>
<Server Name="gmitc-data3" Full="No">
<SharedVolume Vol="d:\Shared Volume" Full="No"/>
</Server>
</Class2BkupServer>
<Users>
<User Name="laura" Quota="Basic" Department="" Location="" Phone="" Email=""
Class1Root="gmitc-data3\d:\Shared Volume" Class1Folder="laura_Class1_Data"
Class2Root="gmitc-data3\d:\Shared Volume" Class2Folder="laura_Class2_Data"/>
<User Name="ren" Quota="Middle" Department="" Location="" Phone="" Email=""
Class1Root="gmitc-data3\d:\Shared Volume" Class1Folder="ren_Class1_Data"
Class2Root="gmitc-data3\d:\Shared Volume" Class2Folder="ren_Class2_Data"/>
</Users>
</DMadmin>

---------------------------------
AnswerRe: What wrong with this clause?? Pin
Christopher Lord14-Aug-02 16:43
Christopher Lord14-Aug-02 16:43 
GeneralRe: What wrong with this clause?? Pin
Tida15-Aug-02 2:55
Tida15-Aug-02 2:55 
AnswerRe: What wrong with this clause?? Pin
Ranjan Banerji15-Aug-02 3:33
Ranjan Banerji15-Aug-02 3:33 
QuestionSchema: exclude element from occuring within itself? Pin
Jonnie White13-Aug-02 1:49
Jonnie White13-Aug-02 1:49 
GeneralEmbedded html Pin
Lilian Chan-Grant6-Aug-02 10:03
Lilian Chan-Grant6-Aug-02 10:03 
GeneralRe: Embedded html Pin
Lilian Chan-Grant7-Aug-02 9:28
Lilian Chan-Grant7-Aug-02 9:28 
Generalexslt set:distinct template order Pin
Chris_D5-Aug-02 6:30
Chris_D5-Aug-02 6:30 
QuestionXML Schema for Office Web Component ver 9 and 10? Pin
Dmitry Novikov2-Aug-02 8:03
Dmitry Novikov2-Aug-02 8:03 
QuestionVARIANT to XML? Pin
mali1-Aug-02 19:34
mali1-Aug-02 19:34 
AnswerRe: VARIANT to XML? Pin
Ranjan Banerji2-Aug-02 5:05
Ranjan Banerji2-Aug-02 5:05 
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:27
sussStanford Powers31-Jul-02 18:27 
GeneralLoadxmlerror Pin
suresh_sathya28-Jul-02 18:53
suresh_sathya28-Jul-02 18:53 
GeneralRe: Loadxmlerror Pin
Roman Nurik28-Jul-02 20:32
Roman Nurik28-Jul-02 20:32 
GeneralRe: Loadxmlerror Pin
Colin Leitner29-Jul-02 14:15
Colin Leitner29-Jul-02 14:15 
GeneralRe: Loadxmlerror Pin
Domenic Denicola31-Jul-02 10:14
Domenic Denicola31-Jul-02 10:14 
GeneralRe: Loadxmlerror Pin
Colin Leitner1-Aug-02 10:14
Colin Leitner1-Aug-02 10:14 
General"Empty" XML Document Pin
kenlefeb24-Jul-02 3:14
kenlefeb24-Jul-02 3:14 

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.