The point of that snippet is to get a class that implements the DOM with specific features. Specifying that you want an "LS" implementation indicates that you want support for the DOM 3 Load and Save features. See http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#DOMFea tures for some background.
I don't see any indication in the document you linked to that "*" is an allowed value for getDOMImplementation(). Two of the calls to getDOMImplementation() specify the "LS" feature, and one specifies "Range." "*" doesn't make a lot of sense to me. I want to know that an implementation has the features I require, but "*" is usually a wildcard matching anything. If you obtained an implementation that way, how would you know what it could do? I agree that it would be useful to have a list of feature strings that you can pass to getDOMImplementation(). I'd think there must be one somewhere, but if so, I couldn't find it. Anyone...? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 8:25 AM To: [email protected] Subject: Understanding Problem with XMLString::transcode("LS", tempStr, 99); Hello all together, can somebody tell me what the following code does (see questions in the commment) XMLCh tempStr[100]; XMLString::transcode("LS", tempStr, 99); /*for what stands "LS" ?? and why can't i use "*" , what is also possible according to http://old.hki.uni-koeln.de/teach/ws0506/hs/tag7/xerces-c.pdf ? Is there an document which i can read and it told me all options, and when i can use it ?*/ DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr); DOMBuilder* parser = ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE _SYNCHRONOUS, 0); Thanks David
