General Page
You are in: RPG Cafe > XML-INTO namespaces
Short URL for this page: http://ibm.biz/rpgcafe_xmlinto_nsopts
RPG Cafe: XML-INTO namespaces
XML-INTO namespaces and other non-RPG names
Namespace options "ns" and "nsprefix"
This enhancement provides support for some new XML-INTO options to deal with namespaces and with other XML names that do not map to RPG names.
- There are two new XML-INTO options to handle XML names containing a namespace.
- The namespace option, "ns", controls how XML-INTO handles XML names with a namespace when it is matching XML names to the names in the path option or the subfield names of a data structure.
- The namespace prefix option, "nsprefix", allows your RPG program to find out the values of the namespaces that were removed from the XML names when the "ns=remove" option was used to remove the namespace from the names.
- Also, the new value "case=convert" for the "case" option handles non-RPG characters in XML names
Documentation in the IBM Knowledge Center
Example of the "ns" option: https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasd/xmlintns.htm
Example of the "nsprefix" option: https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasd/xmlintnspfx.htm
Example of the "case=convert" option: https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasd/caseconvxmp.htm
Was this topic helpful?
Document Information
Modified date:
06 February 2020
UID
ibm11108461