DOM performance/coding issue

2003-09-14 Thread David Hoffer
I have a question about how to effectively parser a large DOM document. For example, I have a lot of 'PatchData' elements. I am looking for the set of these where the child element 'CbName' matches a certain string. The following code takes 30 seconds just to loop through the DOMNodeList before

RE: TEST

2003-09-14 Thread David Hoffer
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DOM buffer allocation question

2002-11-22 Thread David Hoffer
Where is the buffer(string) allocated which is returned by the XMLCh pointer of the getNodeValue() function? Do I have to provide my own buffer, like I do below, to copy the contents of the returned string into? Or could I just return the XMLCh pointer from my GetElementValue() method? BOOL CDOM

DOM search optimization questions

2002-11-22 Thread David Hoffer
I have the following DOM structure. My application has to make repeated requests to find the Label element value for each Patch element in a Side element. I may have up to 2000 Patches per Side. All my application knows is the Side Index and the RowIndex & ColIndex. Because these are attributes

Serialize and unserialize DOMDocument over socket

2002-09-30 Thread David Hoffer
I am trying to create rather simple DOM documents and send them over sockets, I then repackage the socket stream, on the receiving end, into DOM documents. I would expect the documents to be the same, i.e. isEqualNode would return true. However, it is failing at least because the LocalName is no

Re: BSTR

2002-02-08 Thread David Hoffer
Another VC++ thought...if you are using MFC you can very easily get a BSTR from a CString by calling CString::AllocSysString().  If CString is already UNICODE there is no code page conversion to get to the  BSTR. In addition, I think the Win32 API function SysAllocString() does the same thin