How To Find Invalid XML Characters (Unicode 0x12)

Questions about XML that are not covered by the other forums should go here.
rstring9
Posts: 1
Joined: Wed Dec 06, 2017 5:01 pm

How To Find Invalid XML Characters (Unicode 0x12)

Post by rstring9 »

Hello,

I have a system which reads rows from a database, then makes those rows XML records.
The system is reporting, "An invalid XML character (Unicode: 0x12) was found in the element content of the document."

The website https://unicodelookup.com tells me that this is "dc2 device control two ctrl-r". This is HEX value 0x12

Can anyone help me understand how to Use the Oxygen editor to find the invalid character(s)?

Thanks in advance,
Rich
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: How To Find Invalid XML Characters (Unicode 0x12)

Post by adrian »

Hello,

Assuming that message is indeed correct and there is a Unicode character with the hexadecimal code 0x12 in the content, you can search for it in Oxygen with the Find > Find/Replace tool. Use:
Find: \u0012
Options: [x] Regular expression

You can also use this with the Find > Find/Replace in Files tool.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply