You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by y_...@tsmc.com on 2010/07/09 08:13:28 UTC

createDocument Exception

Hi ,
           I wanna create XML Document in my C++ Application ,
           but I get Exception from createDocument .

           So , if I createDocument XML_Transaction include 「:」
application will return exception
                   if I  createDocument XML_Transaction not include 「:」
appliaction will normal end .

           how can I createDocument XML_Transaction include 「:」?

          Here is my sample code

         XMLCh * XML_Transaction = XMLString::transcode("transaction:123");
        try
                {
                          DOMImplementation *impl =
DOMImplementationRegistry::getDOMImplementation("Core");

                          DOMDocument* doc = impl->createDocument(0,
XML_Transaction, 0  );        --->> get exception from this line

                           .... etc
                  }
         catch ( xx )
          {
                   cout << " You got Exception" << endl ;
           }
 --------------------------------------------------------------------------- 
                                                         TSMC PROPERTY       
 This email communication (and any attachments) is proprietary information   
 for the sole use of its                                                     
 intended recipient. Any unauthorized review, use or distribution by anyone  
 other than the intended                                                     
 recipient is strictly prohibited.  If you are not the intended recipient,   
 please notify the sender by                                                 
 replying to this email, and then delete this email and any copies of it     
 immediately. Thank you.                                                     
 ---------------------------------------------------------------------------