"LS" means "Load & Save"; the W3C DOM allows multiple DOM implementation to cohesist, so the DOMImplementationRegistry::getDOMImplementation will look in the available implementations and pick one that has the specified features (this to allow a low footprint DOM when you don't need advanced features)

Core = it supports just the basic DOM features
Range = createRange is supported
Traversal = createTreeWalker and createNodeIterator are supported
LS = Load & Save -> createDOMBuilder and createDOMWriter are supported

Having said that, Xerces has just one DOM model, so regardless of how many feature you request, you will be given the entire set of features.

Alberto

[EMAIL PROTECTED] wrote:
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


Reply via email to