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

How To Find Invalid XML Characters (Unicode 0x12)

Wed Dec 06, 2017 5:13 pm

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: 2334

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

Wed Dec 06, 2017 7:30 pm

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

Return to “General XML Questions”

Who is online

Users browsing this forum: No registered users and 0 guests