Hello Reece,
use setAttributeNS, not setAttribute ("without namespace") whenever you
need a namespaced attribute (with a colon in the name).
The transformer should have a hint to set pretty printing.
best regards,
Erich Schubert
___
Enigma-devel mailing
Thanks Erick,
However, I wasn't able to figure out how to implement the code.
Would you like to take a look at the code?
I can send you the file or the code is also available on Git via a
SourceForge project.
http://sourceforge.net/projects/enigmaeditor/ (The projects SourceForge
page.)
http://
Hello Reece,
You need to define the prefixes using the Namespace APIs.
Usually, they do not need to be "el:". It's up to the user to choose these
prefixes.
The key part is to map the prefix to a namespace, there should be a
xmlns:el attribute on an appropriate parent node.
Typical code looks (here
Hello everyone!
I am attempting to create a level for enigma using the built in xml dom
package packaged with java.
I am having trouble doing this because of the "el:" prefix that needs
added to all xml tags in the xml portion of the level.
Does anyone have any knowledge of the java xml parser