Attribute value of xmlns should be enclosed in either single or double quotes

This is related to XML string processing.
In this scenario, we are getting an XML string as request and transforming it into a document format.

We are using the following methods.


We are receiving the following issue when passing no quoted value in XML attributes like as follows:
<XYZ Domain Names | Join Generation XYZ xmlns:xsi= creationDateTime=“2023-01-20T10:50:47+00:00”>

So while converting this to document, we are getting below error.
[ISC.0042.9333] Attribute value of xmlns should be enclosed in either single or double quotes.

So, is there any method that helps to pass this no quoted value?
Note: We are not supposed to change the XML string and add the quotes via code.

Product: webMethods Integration Server
Product Version: 10.5
Operating System: Windows Server 2019 x86-64


I think best way to solve this is to get in contact with the system who sends you this data and ask them to provide these values as already quoted ones.
This will ensure compliance with the W3C standard.



What @Holger_von_Thomsen notes is not only the best way but it is the only way. Attribute values must be quoted. It is not valid XML otherwise. There is nothing a recipient of malformed XML can do/should do to try work around invalid XML. The creation of the XML must be fixed at the source.

Assuming this is intended to be a default namespace, that looks unusual. While a namespace name does not need to be a URI, it typically at least looks like one. Likely not an issue but thought it might be worth a look.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.