Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml in microsoft vc++ 6

Status
Not open for further replies.

venkirtz

Programmer
Feb 11, 2003
4
TH
I want to know the details of how i can do the parsing of xml files.. I know I should use msxml4.dll I would like to know more about this
venki
 
My preference is to use #import and then use the _com_ptr_t associated definitions of the interfaces.

If you have never worked with COM interfaces and _com_ptr_t you might check it out on MSDN.

Beyond that you are just working with the DOM you can check it out at
Good luck
-pete
 
hi palbano,
I have an xml which looks like this..

Iam using msxml4.dll and working on vc++6.0

<?xml version=&quot;1.0&quot;encoding=&quot;GB2312&quot;? <xml xmlns:dt=&quot;uuid:C2F41010-65B3-11d1-A29F-00AA00C14882&quot; xmlns:rs=&quot;urn:schemas-microsoft-com:rowset&quot; xmlns:s=&quot;uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882&quot; xmlns:z=&quot;#RowsetSchema&quot;> <s:Schema id=&quot;RowsetSchema&quot;>
<s:ElementType content=&quot;eltOnly&quot; name=&quot;row&quot; rs:updatable=&quot;true&quot;> <s:AttributeType name=&quot;vcEmpName&quot; rs:autoincrement=&quot;false&quot; rs:basecolumn=&quot;vcEmpName&quot; rs:basetable=&quot;tbEmp&quot; rs:keycolumn=&quot;true&quot; rs:number=&quot;1&quot;> <s:datatype dt:type=&quot;VARCHAR&quot; dt:maxLength=&quot;50&quot; rs:fixedlength=&quot;true&quot; rs:maybenull=&quot;true&quot;/> </s:AttributeType> <s:AttributeType name=&quot;vcEmpID&quot; rs:autoincrement=&quot;false&quot; rs:basecolumn=&quot;vcEmpID&quot; rs:basetable=&quot;tbEmp&quot; rs:keycolumn=&quot;true&quot; rs:number=&quot;2&quot;> <s:datatype dt:type=&quot;VARCHAR&quot; dt:maxLength=&quot;17&quot; rs:fixedlength=&quot;true&quot; rs:maybenull=&quot;true&quot;/> </s:AttributeType> <s:AttributeType name=&quot;vcDepName&quot; rs:autoincrement=&quot;false&quot; rs:basecolumn=&quot;vcDepName&quot; rs:basetable=&quot;tbEmp&quot; rs:keycolumn=&quot;true&quot; rs:number=&quot;3&quot;> <s:datatype dt:type=&quot;VARCHAR&quot; dt:maxLength=&quot;50&quot; rs:fixedlength=&quot;true&quot; rs:maybenull=&quot;true&quot;/> </s:AttributeType> <s:AttributeType name=&quot;vcID&quot; rs:autoincrement=&quot;false&quot; rs:basecolumn=&quot;vcID&quot; rs:basetable=&quot;tbEmp&quot; rs:keycolumn=&quot;true&quot; rs:number=&quot;4&quot;> <s:datatype dt:type=&quot;VARCHAR&quot; dt:maxLength=&quot;50&quot; rs:fixedlength=&quot;true&quot; rs:maybenull=&quot;true&quot;/> </s:AttributeType> <s:AttributeType name=&quot;UpDateTime&quot; rs:autoincrement=&quot;false&quot; rs:basecolumn=&quot;UpDateTime&quot; rs:basetable=&quot;tbEmp&quot; rs:keycolumn=&quot;true&quot; rs:number=&quot;5&quot;> <s:datatype dt:type=&quot;VARCHAR&quot; dt:maxLength=&quot;255&quot; rs:fixedlength=&quot;true&quot; rs:maybenull=&quot;true&quot;/> </s:AttributeType> </s:ElementType> </s:Schema> <rs:data> <z:row vcEmpName=&quot;venki&quot; vcEmpID=&quot;1000&quot; vcDepName=&quot;vscvxzcvsddf&quot; vcID=&quot;101&quot; UpDateTime=&quot;2003-02-10 15:37:20&quot;/> </rs:data> </xml>



HOw can I go about parsing to get what is the value contained in vcEmpname or vcEmpID or UpDateTime ..


awaiting eagerly for your esteemed suggestions.
thanking you
venki
 
If you have installed MSXML4 you should read it's help. There are a lot of sampples of walking XML in C++, VBS and JScript . There XML DOM programmers guide. Ion Filipski
1c.bmp


filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top