Error Opening Project "The content of elements must consist of well-formed character data or markup"

<oXygen/> general issues.
iljackb
Posts: 6
Joined: Fri May 23, 2014 9:59 pm

Error Opening Project "The content of elements must consist of well-formed character data or markup"

Post by iljackb » Sat Sep 28, 2019 6:26 pm

I'm having a strange problem opening my project. I last had it open last night, and for the first time in a long time, I closed it and opened a different one. I didn't change any of the configurations (at least to my knowledge) and when I tried to re-open it this morning I get the error message:
"Cannot open the specified file.The content of elements must consist of well-formed character data or markup."

How does a project file get un-well formed character data or markup?

There is no additional information or anything human readable the indicates where I can start trying to fix the problem. The only additional information is to click on "more details", and it gives the following:

Code: Select all

java.io.IOException: The content of elements must consist of well-formed character data or markup.
	at ro.sync.exml.project.c.pci(Unknown Source)
	at ro.sync.exml.project.c.gdi(Unknown Source)
	at ro.sync.exml.project.c.kci(Unknown Source)
	at ro.sync.exml.project.c.hdi(Unknown Source)
	at ro.sync.exml.project.c.pbi(Unknown Source)
	at ro.sync.exml.project.f.ic.ioe(Unknown Source)
	at ro.sync.ui.application.action.r.actionPerformed(Unknown Source)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
	at com.apple.laf.AquaMenuItemUI.doClick(AquaMenuItemUI.java:157)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
	at java.awt.Component.processMouseEvent(Component.java:6533)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6298)
	at java.awt.Container.processEvent(Container.java:2236)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2294)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
	at java.awt.Container.dispatchEventImpl(Container.java:2280)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.awt.EventQueue$4.run(EventQueue.java:729)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
	at ro.sync.ui.application.ApplicationLauncher$_b$1.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

adrian
Posts: 2573
Joined: Tue May 17, 2005 4:01 pm

Re: Error Opening Project "The content of elements must consist of well-formed character data or markup"

Post by adrian » Mon Sep 30, 2019 9:13 am

Hi,

To repair the broken project (.xpr) file, first make a backup copy of the .xpr file and change the file extension to .xml. You can then open the copy of the .xpr (with .xml extension) as a plain XML file via File > Open in Oxygen. Oxygen's automatic validation (and well-formedness check) should pinpoint what the problem is, so you can fix it. If the file is truncated, it might be difficult to fix.

If you aren't able to fix it, please send us the .xpr file to support@oxygenxml.com and we'll try to fix it for you.

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

iljackb
Posts: 6
Joined: Fri May 23, 2014 9:59 pm

Re: Error Opening Project "The content of elements must consist of well-formed character data or markup"

Post by iljackb » Sun Oct 06, 2019 3:25 pm

This worked perfectly, thanks!

Post Reply