Hi Mihai, Mihai Matei <[EMAIL PROTECTED]> writes:
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?> > <sptm:Template > xmlns:sptm="http://www.test.com/schemas/uc/1.00/sptm" > commandType="shell" > filename="myfile.xml" > id="1" > </sptm:Template> > > [...] > > DOMElement* root = pDoc->getDocumentElement(); > const XMLCh* attrValue = > root->getAttributes()->getNamedItem(X("filename"))->getNodeValue(); I don't see why this shouldn't work for the XML instance above. Have you tried to use this code as is? BTW, the second line can be rewritten as: const XMLCh* attrValue = root->getAttribute(X("filename")); hth, -boris -- Boris Kolpackov Code Synthesis Tools CC http://www.codesynthesis.com Open-Source, Cross-Platform C++ XML Data Binding
