Author |
Message
|
DELLIPIZ |
Posted: Tue Feb 10, 2004 1:23 pm Post subject: Need syntax for adding schema line |
|
|
Acolyte
Joined: 08 Oct 2003 Posts: 70
|
Hi Everyone,
I do not need to import a schema into WMQI, but I need to create an XML document with the following line.
<DCD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLoc=".\DCDLoad.xsd">
Any idea of what ESQL commands I can use to print this line?
Thanks! |
|
Back to top |
|
 |
TonyD |
Posted: Tue Feb 10, 2004 1:54 pm Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
Code: |
SET OutputRoot.XML.DCD.(XML.Attribute)"xmlns:xsi" value= 'http://www.w3.org/2001/XMLSchema-instance';
SET OutputRoot.XML.DCD.(XML.Attribute)"xsi:noNamespaceSchemaLoc" value='.\DCDLoad.xsd';
|
|
|
Back to top |
|
 |
DELLIPIZ |
Posted: Wed Feb 11, 2004 7:58 am Post subject: Need syntax for adding schema line |
|
|
Acolyte
Joined: 08 Oct 2003 Posts: 70
|
Hi again,
Thank you for your help!!!!! I'm sorry to bother you again, but I have another question.
At first I had the following code and it worked:
SET OutputRoot.XML.(XML.DocTypeDecl)DCDDataLoad = '';
SET OutputRoot.XML.(XML.DocTypeDecl).(XML.SystemId) = 'C:\temp\cc20xml\DCDDataLoad.dtd';
SET OutputRoot.XML.DCD.(XML.Attribute)"xmlns:xsi" value= 'http://www.w3.org/2001/XMLSchema-instance';
SET OutputRoot.XML.DCD.(XML.Attribute)"xsi:noNamespaceSchemaLocation" value='.\DCDDataLoad.xsd';
Then I was told that I had to change the line from:
SET OutputRoot.XML.(XML.DocTypeDecl)DCDDataLoad = '';
to
SET OutputRoot.XML.(XML.DocTypeDecl)DCD = '';
since DCD is the root element in our XML file, not DCDDataLoad.
However, when I do that, the schema line that we added doesn't show up in the XML output. Any idea how to fix that?
Thanks again!
-Lori |
|
Back to top |
|
 |
TonyD |
Posted: Wed Feb 11, 2004 2:36 pm Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
I am not sure why you think you need this line:
Code: |
SET OutputRoot.XML.(XML.DocTypeDecl)DCD = '';
|
The following statements:
Code: |
SET OutputRoot.XML.(XML.DocTypeDecl).(XML.SystemId) = 'C:\temp\cc20xml\DCDDataLoad.dtd';
SET OutputRoot.XML.DCD.(XML.Attribute)"xmlns:xsi" value= 'http://www.w3.org/2001/XMLSchema-instance';
SET OutputRoot.XML.DCD.(XML.Attribute)"xsi:noNamespaceSchemaLocation" value='.\DCDDataLoad.xsd';
|
:in a flow result in the following output:
Code: |
<!DOCTYPE SYSTEM "C:\temp\cc20xml\DCDDataLoad.dtd">
<DCD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation=".\DCDDataLoad.xsd"/>
|
What output do you want to see? |
|
Back to top |
|
 |
DELLIPIZ |
Posted: Thu Feb 12, 2004 7:01 am Post subject: Need syntax for adding schema line |
|
|
Acolyte
Joined: 08 Oct 2003 Posts: 70
|
Hi,
Instead of:
<!DOCTYPE SYSTEM "C:\temp\cc20xml\DCDDataLoad.dtd">
I need:
<!DOCTYPEÂ DCD SYSTEM "C:\temp\cc20xml\DCDDataLoad.dtd">
Thank you!
-Lori |
|
Back to top |
|
 |
TonyD |
Posted: Thu Feb 12, 2004 4:42 pm Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
|
Back to top |
|
 |
|