1 Reply Latest reply: Nov 23, 2012 3:25 AM by 877353 RSS

    XML "Document" tag issue

    853538
      In my data xml file, I get data like this:
      <?xml version='1.0' encoding='UTF-8'?>
      <Document xmlns='urn:iso:std:iso:20022:tech:xsd:pain.002.001.02' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>

      In Document tag, because of this: xmlns='urn:iso:std:iso:20022:tech:xsd:pain.002.001.02', the rtf doesn't show any output. But if I manually go data xml file and remove xmlns='urn:iso:std:iso:20022:tech:xsd:pain.002.001.02', then my data xml file will be like this:
      <?xml version='1.0' encoding='UTF-8'?>
      <Document xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>

      This perfectly works for me. For testing purpose, I removed it (*xmlns='urn:iso:std:iso:20022:tech:xsd:pain.002.001.02'*). As the data file is from external source, I can't control always. Can someone pls help on this?

      Thanks,
      Mani
        • 1. Re: XML "Document" tag issue
          877353
          I also have problem with 'Document' tag:
          My xsl is like :
          <?xml version="1.0" encoding="UTF-8" ?>
          <!-- $Header: XXMCK_FINLAND_SEPA_EFT_R51-58.xsl 2011/08/4 12:43:27 $ -->


          <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:output omit-xml-declaration="no" />
          <xsl:output method="xml"/>
          <xsl:key name="contacts-by-LogicalGroupReference" match="OutboundPayment" use="PaymentNumber/LogicalGroupReference" />
          <xsl:template match="OutboundPaymentInstruction">

          <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02 pain.001.001.02.xsd">
                    <pain.001.001.02>

          Here in Document tag 2 lines are there, but in xml output these lines get reversed as shown below:
          <Document xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02 C:\XMLSPY~1\pain.001.001.02.xsd" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          Can anybody plz help in this regard?