Skip to main content

Filling with C$XML ADD-ATTRIBUTE

  • May 4, 2012
  • 3 replies
  • 1 view

Jaap Voerman

[Migrated content. Thread originally posted on 03 May 2012]

C$XML is new for me so I have the next value that must in the xml file. How to do that, with ADD-ATTRIBUTE, but is not going right.


xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"
xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 [LOCATION] pain.008.001.02.xsd">

Thanks in advance.

3 replies

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • May 4, 2012

[Migrated content. Thread originally posted on 03 May 2012]

C$XML is new for me so I have the next value that must in the xml file. How to do that, with ADD-ATTRIBUTE, but is not going right.


xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"
xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 [LOCATION] pain.008.001.02.xsd">

Thanks in advance.
Have you added children into your file?

Attached is a sample that I found. It is not a polished application but it shows how to create and write all the parts of the XML file using C$XML. This sample is provided without warrantee.


Jaap Voerman
  • Author
  • Participating Frequently
  • 50 replies
  • May 5, 2012

[Migrated content. Thread originally posted on 03 May 2012]

C$XML is new for me so I have the next value that must in the xml file. How to do that, with ADD-ATTRIBUTE, but is not going right.


xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"
xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 [LOCATION] pain.008.001.02.xsd">

Thanks in advance.
First I do CXML-NEW-PARSER, then CXML-SET-ENCODING and then CXML-ADD-CHILD with "Document".
After that an CXML-ADD-ATTRIBUTE with "xmlns:xsi" and the first blok text "www.w3.org/.../XMLSchema-instance". But then the other text?

Shjerpe, did you forgot the link to the example? If it is the example in the documentation of ACUGT, I have that used.

Thanks already for the help.

Jaap

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • May 21, 2012

[Migrated content. Thread originally posted on 03 May 2012]

C$XML is new for me so I have the next value that must in the xml file. How to do that, with ADD-ATTRIBUTE, but is not going right.


xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"
xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 [LOCATION] pain.008.001.02.xsd">

Thanks in advance.
Yes, sorry .. attached