0

How to use $ symbol in xml file. I am facing little difficulties in that. Below is my xml schema

   <fieldname>ACCOUNT.NUMBER</fieldname>
   <fieldtype>NVARCHAR2</fieldtype>
   <fieldlength>30</fieldlength>

Kindly help me how to use $ symbol in my xml schema.

Krish R
  • 22,583
  • 7
  • 50
  • 59
user2742540
  • 45
  • 2
  • 7

2 Answers2

0

If you want to use $ in text, or in an attribute value, just use it directly. No escaping needed.

If you want to use $ in an element or attribute name, you're out of luck. You can't.

Michael Kay
  • 156,231
  • 11
  • 92
  • 164
-1

Use it with:

<fieldexample><![CDATA[$$$$$]]></fieldexample>

For explanation of the use of CDATA, this answer explains it well.

Community
  • 1
  • 1
Raptor
  • 53,206
  • 45
  • 230
  • 366