"Oleg Lebedev" <[EMAIL PROTECTED]> wrote on 11/22/2005 02:41:37 PM:
> Thanks for the reply George. > > Q1: How to specify "xmlns" as a property of SAXParse? > > I though that maybe you could specify the default namespace of the XML > instance as a property of the SAXParser itself. After all you can > specify > "http://apache.org/xml/properties/schema/external-schemaLocation" > property and tell the parser where to find the XSD file for the given > namespace. So, why can't I specify the "xmlns" part of the XML? No, there's no such property and why would you want one? Other XML parsers would still report that the unprefixed elements in your document have no namespace and if you needed to supply namespace mappings for prefixes which aren't declared within your document then your document probably isn't well-formed. This problem must be fixed at the source, by adding a namespace declaration to the document as George suggests. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
