Re: Missing namespace for attribute defaults from SAXParser

2016-12-09 Thread Patrik Stellmann
Thank for the quick answer, Michael. Will look for a workaround then. Patrik Am 09.12.2016 um 14:13 schrieb Michael Glavassevich: Not user friendly, but working as designed. No prefix is defined for attribute default values (see schema spec here [1]). Some of the more recent XML serialization

Re: Missing namespace for attribute defaults from SAXParser

2016-12-09 Thread Michael Glavassevich
Not user friendly, but working as designed. No prefix is defined for attribute default values (see schema spec here [1]). Some of the more recent XML serialization APIs (LSSerializer / XMLStreamWriter) are more namespace-aware and have the ability to fix up namespaces during serialization. Tha

Missing namespace for attribute defaults from SAXParser

2016-12-09 Thread Patrik Stellmann
Hi, I'm using org.apache.xerces.parsers.SAXParser and when parsing a file with assigned XSD the added default attributes are missing the namespace prefix. The attribute that I have set explicitly is serialized correctly. Ths, I'm pretty sure it is a parser issue. I've added a minimal sampl