Tag Archives: xml

XmlSerializer Namespaces

If you worked with NHibernate mappings, you know very well about the namespace declarations on the root element: <hibernate-mapping xmlns=”urn:nhibernate-mapping-2.2″>. We generate these mappings programmatically, and we naturally wondered how to remove the default xmlns:xsd and xmlns:xsi declarations that the XmlSerializer adds, and add the NHibernate URN in the mix. The recipe below outlines the three necessary steps. [...]

XML Encoding and Java

I came across a Java based blog and noticed a post about XML processing. It appears that the community around that blog is not familiar with the character encoding policies of the XML parsers available in Java. The fact of the matter is that the XML protocol has provisions for specifying the document encoding right [...]