I'm trying to use the setattribute function to create a "noNamespaceschemalocation" attribute in an XML document but can't figure out the syntax for a get a double quote rather than it being converted to '"e;', below is the code I am using; does anyone one what I should be doing?
{
XmlDocument xmlDoc;
XmlElement xmlTransaction;
;
xmlDoc = XmlDocument::newBlank();
xmlTransaction = xmlDoc.createElement('transaction');
xmlTransaction.setAttribute('xmlns:xsi', 'www.w3.org/.../XMLSchema-instance" xsi:noNamespaceSchemaLocation="import_spec.xsd');
The following is created from the above code:
<transaction xmlns:xsi="www.w3.org/.../XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation="import_spec.xsd">
I want to create the following:
<transaction xmlns:xsi="www.w3.org/.../XMLSchema-instance" xsi:noNamespaceSchemaLocation="import_spec.xsd">
*This post is locked for comments