.CND file extension
To open .CND files on Windows, open the .cnd file in a text editor (for example Notepad) or an IDE to view/edit it as plain text.
To open a .cnd file, use a text editor or an IDE (it is plain text) and, if needed, import/register it with JCR software such as Apache Jackrabbit or other JCR implementations that support CND. If you received a .cnd from a content package workflow (for example, Jackrabbit FileVault), it is typically meant to be consumed by those tools rather than “viewed” like a word-processing document.
Last updated: April 29, 2026 · Reviewed by Julian Stricker
Open on your device
Choose your operating system for a dedicated step-by-step opening guide.
How to open .CND files
Use these platform-specific instructions to open .CND files safely.
Windows
- Open the .cnd file in a text editor (for example Notepad) or an IDE to view/edit it as plain text.
- If the file is meant to be applied to a repository, register/import it using your JCR tooling (for example, Apache Jackrabbit node type registration or a FileVault-based import workflow).
Mac
- Open the .cnd file with a text editor (for example TextEdit in plain-text mode) or an IDE to view/edit the definitions.
- To use it in a JCR repository, import/register it via your JCR tools (such as Jackrabbit or a FileVault-based content package workflow).
Linux
- Open the .cnd file in a text editor (for example Vim/Nano) or an IDE; it is plain text.
- If it is for deployment, register/import it with your JCR implementation’s tooling (commonly Jackrabbit-related workflows).
iOS
- You can usually view .cnd as plain text in a text editor app; if you need to register it into a repository, transfer it to a desktop/server environment where your JCR tools run.
Android
- Open the .cnd file in a text editor app to view it as plain text; for repository registration/import, move it to a desktop/server environment with JCR tooling.
Security notes
- .cnd is plain text and does not inherently contain macros or executable code, but importing it changes a repository’s content model; only register CND from trusted sources.
- Be cautious when opening unknown .cnd files with complex tooling: parsing bugs in repository/import tools can be a risk; prefer well-maintained JCR tools and keep them updated.
- Treat .cnd from content packages as configuration: a malicious or careless definition can introduce overly permissive structures or unexpected constraints that affect application behavior.
Recommended antivirus software
Scan files before opening them. These antivirus tools help protect against malware and viruses.
Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.
NortonNorton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.
We may earn a commission when you use affiliate links. This supports our free file extension guides.
Can't open this file?
These are the most common causes and fixes when .CND files fail to open.
Common reasons
- The .CND file opens in the wrong app (or won’t open by double-click)
- Repository import/registration fails due to syntax errors
- Namespace or prefix conflicts during registration
- CND changes do not take effect after deployment/import
Fix steps
- Open it explicitly with a text editor/IDE using “Open with…” and verify you can read it as text.
- Optionally change the default app association for .cnd to your preferred text editor.
OS-specific troubleshooting
What is a .CND file?
.cnd is the Compact Node Type Definition (CND) notation defined by the JCR 2.0 specification. It is a plain-text grammar used to declare JCR namespaces and node type definitions before they are registered in a repository. The official media type for this format is text/jcr-cnd.
Background
Other JCR-related software can also parse/import CND; for example, ModeShape provides an API for importing JCR Compact Node Definition (CND) files. Practically, most users open .cnd files in a text editor to inspect or edit the definitions, then use repository tooling (or build/deploy scripts) to register them.
Common MIME types: text/jcr-cnd
Further reading
Authoritative resources for more details on the .CND format.
- IANA Media Types Registry (text/jcr-cnd)
- JCR-Spec Java™ Technology API 2.0 Specification (CND notation grammar)
- Apache Jackrabbit – Node Type Notation (CND)
- Apache Jackrabbit – Node Types (using CND to define/register node types)
- Jackrabbit FileVault – Node Types and Namespaces (.cnd in content packages)
- ModeShape API – org.modeshape.cnd (importing CND files)
Common .CND issues
The .CND file opens in the wrong app (or won’t open by double-click)
A .cnd file is plain text, but the file association on your system may be missing or pointing to an unrelated program.
- Open it explicitly with a text editor/IDE using “Open with…” and verify you can read it as text.
- Optionally change the default app association for .cnd to your preferred text editor.
Repository import/registration fails due to syntax errors
CND must follow the grammar defined by the JCR specification; minor typos, missing brackets, or invalid names can prevent parsing.
- Validate the file against the JCR 2.0 CND notation rules (Compact Node Type Definition grammar).
- Compare your definitions with working examples from your repository/tooling documentation (for example Jackrabbit’s node type notation documentation) and correct the syntax.
Namespace or prefix conflicts during registration
CND files can declare namespaces/prefixes; conflicts happen when the same prefix/URI is already registered differently in the target repository.
- Check the CND namespace declarations and ensure they match the target repository’s existing namespace registry.
- Adjust prefixes/URIs to align with your deployment conventions, then re-register.
CND changes do not take effect after deployment/import
In content package workflows, node type and namespace registration may only occur at specific import stages or be restricted by repository configuration.
- Confirm your tooling/workflow actually registers node types from the .cnd file during import (for example, the expected FileVault node types/namespaces handling).
- Re-run the import with the correct options/order and verify the repository reports the updated node type definitions.
FAQ
Is a .cnd file a “document” like Word or PDF?
Not typically. In most real-world uses, .cnd is a plain-text JCR Compact Node Type Definition file used by content repositories (for example Apache Jackrabbit) to define and register node types and namespaces.
What is the official MIME type for .cnd (JCR CND)?
The IANA-registered media type is "text/jcr-cnd".
Can I convert a .cnd file to JSON/XML by renaming the extension?
No. Renaming does not convert the syntax. If you need another representation, you would need tooling that parses CND and emits a different format (if your JCR tooling supports that workflow).
How do I tell if my .cnd is actually a JCR CND file?
Open it in a text editor and look for JCR CND-style namespace and node type definitions (as described in the JCR 2.0 CND grammar and Jackrabbit’s node type notation documentation). If it is not readable as text, it may not be a JCR CND file.
Similar file extensions
Compare related formats in the same category to find the right tool faster.