Dear all,

I'm having trouble generating the header of an XML document using 
createDocument().
I'm using:

adel_impl_module = 
DOMImplementationRegistry::getDOMImplementation(XMLString::transcode("Core"));
adel_module_doc = adel_impl_module->createDocument(     
XMLString::transcode("http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
        xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\";
        
xsi:schemaLocation=\"http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
  ADELcalibrationModuleLayout_PKNE.xsd"),
        XMLString::transcode("ADELcalibrationModuleLayout:ModuleLayout"), 0);

The problems are the quotes. I need
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; and 
xsi:schemaLocation="http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
 ADELcalibrationModuleLayout_PKNE.xsd"
In the header. However, if I use quotes (\") they are translated to " See 
below.

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ADELcalibrationModuleLayout:ModuleLayout 
xmlns:ADELcalibrationModuleLayout="http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance &quot;
xsi:schemaLocation=http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
 ADELcalibrationModuleLayout_PKNE.xsd">

How do I generate the desired header with the appropriate quotes:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<ADELcalibrationModuleLayout:ModuleLayout 
xmlns:ADELcalibrationModuleLayout="http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.asml.com/XMLSchema/MT/Generic/ADELcalibrationModuleLayout/v1.0
 ADELcalibrationModuleLayout_PKNE.xsd">

Many thanks in advance,

Joseph



  ________________________________
-- The information contained in this communication and any attachments is 
confidential and may be privileged, and is for the sole use of the intended 
recipient(s). Any unauthorized review, use, disclosure or distribution is 
prohibited. Unless explicitly stated otherwise in the body of this 
communication or the attachment thereto (if any), the information is provided 
on an AS-IS basis without any express or implied warranties or liabilities. To 
the extent you are relying on this information, you are doing so at your own 
risk. If you are not the intended recipient, please notify the sender 
immediately by replying to this message and destroy all copies of this message 
and any attachments. ASML is neither liable for the proper and complete 
transmission of the information contained in this communication, nor for any 
delay in its receipt.

Reply via email to