Bug 33062 - using setFeature ("http://xml.org/sax/features/namespaces",0) and losing attributes
Summary: using setFeature ("http://xml.org/sax/features/namespaces",0) and losing at...
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: PC Windows 2000
: P1 normal
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
Keywords: Xerces2
Depends on:
Blocks: 33039
  Show dependency tree
Reported: 2005-01-12 13:14 UTC by rahul
Modified: 2005-01-12 04:15 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description rahul 2005-01-12 13:14:47 UTC
Referring to ASF Bugzilla Bug 33039  ...
The problem is not of setAttributes() as I had mentioned.

I need to rename a Node. I have set the parser option 
parser.setFeature ("http://xml.org/sax/features/namespaces",0) before reading 
the XML file.

The getAttributes() does not return back (show) the attributes even though they 
are available/present in the DOM structure. I get them back when I serialize 
the DOM tree?

But when I use
parser.setFeature ("http://xml.org/sax/features/namespaces",1), I can get 
access to the attributes (and change them using setAttributes() )

How do I get access to the attributes with the parser option
parser.setFeature ("http://xml.org/sax/features/namespaces",0)?