[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: Adding attributes in MSXML
  • From: "Venkatesh Babu" <jvbabu@h...>
  • Date: Thu, 13 Dec 2001 20:16:04
  • Bcc:

Hi,

I have this requirement to add two debugging attributes for every element of 
the xml document i parse. I am using MSXML4 RTM. I use ISAXXMLReader to 
parse the document. I have a class which overrides ISAXContentHandler and in 
the startElement method i add the two attributes. The problem is, i get a 
pointer to ISAXAttributes which i cannot modify. To add attributes i need a 
IMXAttributes pointer. I tried to get IMXAttributes pointer from 
ISAXAttributes pointer through queryinterface but it fails. I had to make a 
copy of each attribute and stick it into the IMXAttributes which slowed down 
my app by atleast two times. can someone suggest a better way to handle 
this.

Thanks,
Venkat

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member