Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.6.0
-
None
-
Win2000, MS VC++ 6.0
Description
In the DOM Programming Guide under "Memory Management" there's some sample code that I think is wrong. Here's a piece of the code that's in the documentation:
XMLCh* tempStr[100];
XMLString::transcode("Range", tempStr, 99);
The above doesn't compile on my machine. I think the "tempStr" array is declared incorrectly. It works when I use the following declaration:
XMLCh tempStr[100];
so without the asterisk , which actually makes more sense.