> but, when I add some namespace information into the root element, the print
out is not what I expected:
> original:
> <root
> xmlns="http://myProject.myCompany.com/order"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://myProject.myCompany.com/order order.xsd"
> ID="5">
>
> now the print out is:
> <root
> xsi:schemaLocation="http://myProject.myCompany.com/order order.xsd"
> ID="5">
>
> here, I missed two lines from the original xml file. I tried to debug my
> code,
and found that the xml=... and xml:xsi=... was not listed in the atts as
attribute name/value pair. What's the reason? How to fix my problem?
SAX "http://xml.org/sax/features/namespace-prefixes" feature controls
the reporting of qNames and Namespace declaration (xmlns* attributes). Value of
this feature is 'false' by default, check if u have set this feature value to
true before parsing ur document.
--
Neeraj Bajaj
Sun Microsystems, inc.
Phone: 080-2298989 x87425.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]