Site Sponsors:
Beginners: Learn how to Program - with Python! 
Yup: I have kids. Yes - I routinely wage war trying to get each to learn how to enjoy WRITING games, rather than playing them.

While I too have been know to favor a keyboard-game or three, while teaching complete beginners how to program, over the decades I have discovered that the key to success is to never assume ANYone knows ANYthing. =)

In as much as I have a professional training experience designed to welcome complete novices into the wonderful world of Python Programming therefore, I decided to share the start-up lessons from the same on a new Pro Python play-list on YouTube.

[ add comment ] ( 188 views )   |  permalink  |  related link
Fixing SVC.XML Errors in Apache Batik 
It was 2AM. Well into the 1st shift for my day.

Having just enthusiastically created 20 images for use in a 2D attack simulator, I was eager to get those Inkscape designs into my Java simulator.

Upon noticing that even the Linux OS I was using was unable to display thumbnails for the images in-question, I should have known that something was going wrong. Undaunted however, I rather venially tried to load the XML files as saved by Inkscape.

What part of the word "boom" did I not understand?

After the usual & customary 'googling, it became apparent that the problem was that Inkscape was using absent-classes to control bits of undo, layering, and other XML snippets that were simply not to be found in the Apache Batik Framework. After that epiphany, the quick-and-easy work-around became obvious.

(HINT: The use of additional JAR files was NOT required!)

Submitted for your R&D approval therefore, please consider this link so as to slap me with .02 for taking the time to share the solution to what - for many - has proven to be a real show-stopper to re-using output from many an SVG.XML program in their own - as well as in other people's - vector-laden software creations.

Note also that while sharing might indeed be caring, that gifting your fellow 'geeks with pennies from a YouTube view or two is one nice way to return the favors.

Enjoy the Journey!


Google Fodder:

org.w3c.dom.DOMException: The current document is unable to create an element of the requested type (namespace:, name: flowRoot).
at org.apache.batik.dom.AbstractNode.createDOMException(Unknown Source)
at org.apache.batik.anim.dom.SVGDOMImplementation.createElementNS(Unknown Source)
at org.apache.batik.anim.dom.SVGOMDocument.createElementNS(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.anim.dom.SAXSVGDocumentFactory.createDocument(Unknown Source)
at org.apache.batik.anim.dom.SAXSVGDocumentFactory.createSVGDocument(Unknown Source)
at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown Source)
at Source)

[ add comment ] ( 201 views )   |  permalink  |  related link

<<First <Back | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Next> Last>>