Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

How to make the *.graphml file usable after the SAX error: Content is not allowed in prolog

0 votes

Here the file: attached file

Hi Everyone,

I am facing the same issue when I try now to open a *.graphml file. I was working on the file since a couple days without any problem.

Is there meanwhile a workaround to fix this issue? or how can I make it usable again (even with some loss)?

I have tried to open it with notepad++ but the content doesn't make any sense. 

Windows 10 (64-bit) ; Java version 16.0.1;  yEd Version 3.23.1

-----------

y.H.B.B.b: SAX error: Content is not allowed in prolog.
    at com.yworks.A.B.G.A.T$H.ā(Unknown Source)
    at com.yworks.A.B.G.A.T.ā(Unknown Source)
    at com.yworks.A.B.G.A.P.ā(Unknown Source)
    at y.H.G.ā(Unknown Source)
    at y.B.A.M.Đ(Unknown Source)
    at y.B.j.č(Unknown Source)
    at y.B.j.ā(Unknown Source)
    at y.B.j.ă(Unknown Source)
    at com.yworks.A.B.Z.ă(Unknown Source)
    at com.yworks.A.B.Z.ā(Unknown Source)
    at com.yworks.A.K.P.ā(Unknown Source)
    at com.yworks.A.K.P.ā(Unknown Source)
    at com.yworks.A.K.P$A.Ă(Unknown Source)
    at com.yworks.A.K.P.ā(Unknown Source)
    at com.yworks.A.L.D.ā(Unknown Source)
    at com.yworks.A.L.j.actionPerformed(Unknown Source)
    at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
    at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
    at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
    at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
    at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
    at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
    at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6614)
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
    at java.desktop/java.awt.Component.processEvent(Component.java:6379)
    at java.desktop/java.awt.Container.processEvent(Container.java:2263)
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919)
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548)
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489)
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
    at java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:261)
    at java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
    at com.yworks.A.C.A.ā(Unknown Source)
    at com.yworks.A.C.A.ā(Unknown Source)
    ... 53 more
-----------


 

in Help by
edited

1 Answer

0 votes

The only way to know if the file can be restored is to open the file in a text editor and see what is left of the original GraphML content. To do that we would need your file.

(It is possible to upload files here.)

by [yWorks] (160k points)
Thank you for your feedback.

I have updated the mentionned file in the first line of my problem report.

Thank you for uploading the file in question. Unfortunately, the file turned out to have been erased completely. More precisely, its content has been actively replaced with  0-value bytes. This is something yEd does not do - not even in the case of an error.
(Typically, data erasement tools overwrite files / hard drive sections with 0-value bytes to prevent restoration of the erased data. Did you use such a tool?)

Then i must create it again from scratch.
I didn't use a date erasement tools.

Thank you for your support.
Legal Disclosure | Privacy Policy
...