Apologize in advance if this has been asked before. I am still a little confused as to how to serialize a document with basic namespace handling
When I use the default option (ie. none), serializing my document yields the following <?xml version="1.0" encoding="UTF-8"?> <cus:CustomErrors xmlns:cus="http://customerror.xml.acmeweb.com"> <WarningFlag>false</WarningFlag> <ErrorFlag>true</ErrorFlag> <FatalErrorFlag>false</FatalErrorFlag> <ErrorCount>2</ErrorCount> If I turn call xmlOptions.setUseDefaultNamespace() prior to serializing, I get <CustomErrors xmlns="http://customerror.xml.acmeweb.com"> <WarningFlag xmlns="">false</WarningFlag> <ErrorFlag xmlns="">true</ErrorFlag> <FatalErrorFlag xmlns="">false</FatalErrorFlag> <ErrorCount xmlns="">2</ErrorCount> ... This is probably worse because most of our customers simply don't know how to handle xmlns="" in the child element. Is there a simple way to serialize my document and get somethign like this (ie. without any prefix?) <?xml version="1.0" encoding="UTF-8"?> <CustomErrors xmlns:"http://customerror.xml.acmeweb.com"> <WarningFlag>false</WarningFlag> <ErrorFlag>true</ErrorFlag> <FatalErrorFlag>false</FatalErrorFlag> <ErrorCount>2</ErrorCount> I've searched FAQ and googled but found no simple answers for this question. Thanks in advance Frank. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]