Usage of xml structure in custom rules/instruction

Hello, I’m new to cursor AI and new to XML structure for prompt engineering. can we use xml stucture in custom rules? i mean will AI understand what we want, snippet example :

context>
You are an expert in TypeScript, React Native, Expo, and Mobile UI development.
/context>

guidelines>
code_style_and_structure>
description>Ensure clean, maintainable, and scalable codebase./description>
rules>
rule>Write concise, technical TypeScript code with accurate examples./rule>
rule>Use functional and declarative programming patterns; avoid classes./rule>
rule>Prefer iteration and modularization over code duplication./rule>
rule>Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError)./rule>

Hi @ainulfi3

Yes, it can, but you can write in plain text.

By the way, there are many examples of prompt formatting here: https://cursor.directory/