S
Sanjeev
Dear Gurus,
I am trying to build a string i.e. XML content into string as follows.
XML file content as follows.
<?xml version="1.0" encoding="UTF-8"?>
<IFX xmlnsain001="urn:swift:xsd:$pain.001.001.01"
xmlnsain002="urn:swift:xsd:$pain.002.001.01"
xmlnsain004="urn:swift:xsd:$pain.004.001.01"
xmlns:remit="http://www.ifxforum.org/RemitDetailInfo/2004/07"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Documents and Settings\SIMYNYY
\Desktop\BSP\IFX\IFX1.7_XSD\IFX170_XSD.xsd"<Catlog>
<Employee>
<Name>Crow</Name>
<Id>3676</Id>
</Employee>
</Catlog>
</IFX>
When build a string and print using System.out.println();
String sendingMessage = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"\n <IFX xmlnsain001=\"urn:swift:xsd:$pain.
001.001.01\" xmlnsain002=\"urn:swift:xsd:$pain.002.001.01\"
xmlnsain004=\"urn:swift:xsd:$pain.004.001.01\" xmlns:remit=\"http://
www.ifxforum.org/RemitDetailInfo/2004/07\" xmlns:xsi=\"http://
www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"C:
\\Documents and Settings\\SIMYNYY\\Desktop\\BSP\\IFX\\IFX1.7_XSD\
\IFX170_XSD.xsd\" >" +
"\n <Message>" +
"\n <MsgHeader>" +
it gets print on console properly
But if pass this string to other method by invocation it gets print as
follows
<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
\n <IFX xmlnsain001=\"urn:swift:xsd:$pain.001.001.01\"
xmlnsain002=\"urn:swift:xsd:$pain.002.001.01\"
xmlnsain004=\"urn:swift:xsd:$pain.004.001.01\"
xmlns:remit=\"http://www.ifxforum.org/RemitDetailInfo/2004/07\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:noNamespaceSchemaLocation=\"C:\\Documents and Settings\\SIMYNYY\
\Desktop\\BSP\\IFX\\IFX1.7_XSD\\IFX170_XSD.xsd\" >" +
\n <Message>
\n <MsgHeader>
....
....
Could anyone help me.
Sanjeev
I am trying to build a string i.e. XML content into string as follows.
XML file content as follows.
<?xml version="1.0" encoding="UTF-8"?>
<IFX xmlnsain001="urn:swift:xsd:$pain.001.001.01"
xmlnsain002="urn:swift:xsd:$pain.002.001.01"
xmlnsain004="urn:swift:xsd:$pain.004.001.01"
xmlns:remit="http://www.ifxforum.org/RemitDetailInfo/2004/07"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="C:\Documents and Settings\SIMYNYY
\Desktop\BSP\IFX\IFX1.7_XSD\IFX170_XSD.xsd"<Catlog>
<Employee>
<Name>Crow</Name>
<Id>3676</Id>
</Employee>
</Catlog>
</IFX>
When build a string and print using System.out.println();
String sendingMessage = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
"\n <IFX xmlnsain001=\"urn:swift:xsd:$pain.
001.001.01\" xmlnsain002=\"urn:swift:xsd:$pain.002.001.01\"
xmlnsain004=\"urn:swift:xsd:$pain.004.001.01\" xmlns:remit=\"http://
www.ifxforum.org/RemitDetailInfo/2004/07\" xmlns:xsi=\"http://
www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"C:
\\Documents and Settings\\SIMYNYY\\Desktop\\BSP\\IFX\\IFX1.7_XSD\
\IFX170_XSD.xsd\" >" +
"\n <Message>" +
"\n <MsgHeader>" +
it gets print on console properly
But if pass this string to other method by invocation it gets print as
follows
<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
\n <IFX xmlnsain001=\"urn:swift:xsd:$pain.001.001.01\"
xmlnsain002=\"urn:swift:xsd:$pain.002.001.01\"
xmlnsain004=\"urn:swift:xsd:$pain.004.001.01\"
xmlns:remit=\"http://www.ifxforum.org/RemitDetailInfo/2004/07\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:noNamespaceSchemaLocation=\"C:\\Documents and Settings\\SIMYNYY\
\Desktop\\BSP\\IFX\\IFX1.7_XSD\\IFX170_XSD.xsd\" >" +
\n <Message>
\n <MsgHeader>
....
....
Could anyone help me.
Sanjeev