illegal character not parsed as error
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 16
- Joined: Sat Nov 03, 2012 8:45 pm
illegal character not parsed as error
While using Oxygen 13 I had a > character in the content of my xml which did not parse as error!
Unfortunately my client got totally pissed off about this ...
I think this is a serious problem. Do you have an explanation for this behaviour?
Unfortunately my client got totally pissed off about this ...
I think this is a serious problem. Do you have an explanation for this behaviour?
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: illegal character not parsed as error
Hello,
It all depends on the context where the > character is being used. It's a common misconception that > is a strictly illegal character in XML. It is not, you can freely use it in text content, but it is illegal in some specific contexts.
From http://www.w3schools.com/xml/xml_syntax.asp , see Entity References:
If you want to keep it private, you can send it to: support AT oxygenxml DOT com.
Regards,
Adrian
It all depends on the context where the > character is being used. It's a common misconception that > is a strictly illegal character in XML. It is not, you can freely use it in text content, but it is illegal in some specific contexts.
From http://www.w3schools.com/xml/xml_syntax.asp , see Entity References:
Do you have a sample XML file where you expected > to be reported as an error?Only the characters "<" and "&" are strictly illegal in XML. The greater than character is legal, but it is a good habit to replace it.
If you want to keep it private, you can send it to: support AT oxygenxml DOT com.
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
-
- Posts: 16
- Joined: Sat Nov 03, 2012 8:45 pm
Re: illegal character not parsed as error
Thanks for the reply Adrian, I will read the documentation you have posted.
Unfortunately I have discovered that the parse error was another - not reported by Oxygen 13:
I have an element with its children defined as a sequence:
<!ELEMENT ld-le ( le-begriff, le-eintrag ) >
in the actual xml file the structure was wrong:
<ld-le>
<le-eintrag>...content ...</le-eintrag>
<le-begriff>...cotent ...</le-begriff>
</ld-le>
and Oxygen reported the file as being valid! I used another parser (Eclipse) to parse the file and that one showed the error very clearly.
Thanks for your help,
Gabriela
Unfortunately I have discovered that the parse error was another - not reported by Oxygen 13:
I have an element with its children defined as a sequence:
<!ELEMENT ld-le ( le-begriff, le-eintrag ) >
in the actual xml file the structure was wrong:
<ld-le>
<le-eintrag>...content ...</le-eintrag>
<le-begriff>...cotent ...</le-begriff>
</ld-le>
and Oxygen reported the file as being valid! I used another parser (Eclipse) to parse the file and that one showed the error very clearly.
Thanks for your help,
Gabriela
-
- Posts: 16
- Joined: Sat Nov 03, 2012 8:45 pm
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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