I am having a typical problem. I need to get an XMLNS output using messagedomain as XMLNS as follows
--------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2005 U (http://www.xmlspy.com)-->
<n:transaction xmlns:n="http://www.lsb.de/apc/ops/Transaction" xmlns:ops="http://www.lsb.de/apc/ops/Ops" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.lsb.de/apc/ops/Transaction
C:\PROGRA~1\IBM\WEBSPH~2\eclipse\workspace\LHS_Schemas_XSDs\ops\Transaction.xsd">
I have written the following code ................
The problem is .......
I need to add an attribute named "xsi:schemaLocation" to my toplevel element transaction, but while doing so by above code defaullt namespace "NS1" is geeting attached to both "xsi" and "schemaLocation".
Can anybody tell me how can I create the "xsi:schemaLocation" attribute in my top level element.
Satyasheel,
The problem is that xsi:schemaLocation is not a namespace declaration it is just an attribute. The following ESQL should produce what you require.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum