How To Find Invalid XML Characters (Unicode 0x12)
Questions about XML that are not covered by the other forums should go here.
-
- Posts: 1
- Joined: Wed Dec 06, 2017 5:01 pm
How To Find Invalid XML Characters (Unicode 0x12)
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
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
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: How To Find Invalid XML Characters (Unicode 0x12)
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
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “General XML Questions”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service