IBM Support

XML validation not working on projects created on a folder inside the workspace

Troubleshooting


Problem

When creating a project inside a folder that is located on the workspace, and creating a validation rule for XML, the project name is appended. When this happens, XML validation fails.
To reproduce the problem, perform the following steps:
1) Create a new folder on the workspace (for example, scm)
2) Create a new General > Project. Modify the default location to the folder that is created in step 1 (<workspace>/scm/MyProject).
3) Create a new folder (<workspace>/scm/MyProject/resources).
4) Create a new .xml file in the folder.
5) Modify the .xml file to generate a problem. For example, change the header version to vsion.
6) Right click on the parent folder and click Validate. The Problems view opens and displays the problem that we created.
7) Go to Preferences > Validation > XMLValidator > Settings.
8) Select exclude group > add Rule.
9) Select folder or file name and click Next.
10) Browse to the folder that you created (<workspace>/scm/MyProject/resources) to add the rule as "Folder:MyProject/resources", which is the problem.
11) Run validation again. The XML is validated.

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF017","label":"Mac OS"},{"code":"PF033","label":"Windows"}],"Version":"9.7.0, 9.7.0.1;9.7.0.2","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
22 June 2026

UID

ibm10888549