Hello
Is it proper way to get a named item? I expect there might be some problems
in conversion from XMLCh to wchar_t, yet, as I read in my compiler docs,
wchar_t is reprsented internally as unsigned short. Also I've found that
constructing literals as it is done in first line of listing above is quite
tedious, is there any other way to do it? (I know about XString and its
transcode method, yet I expect there should be performance degradation
because I will be forced to do release() after using of every string
constructed that way - and I've got many literals in my application). I am
looking forward to some comments:
XMLCh pathName [] = {chLatin_p,chLatin_a,chLatin_t,chLatin_h};

DOMDocument* doc = parser->getDocument();

DOMElement* root = doc->getDocumentElement();

DOMNode* csvNode = root->getElementsByTagName (csvName)->item (0);

DOMNamedNodeMap* csvAttributes = csvNode->getAttributes();

wstring path =
(wchar_t*)(csvAttributes->getNamedItem(pathName)->getNodeValue());





Greetings
Marcin Rzeźnicki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to