You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jeong Ahn Lee <je...@yahoo.com> on 2002/07/16 08:00:54 UTC

xmlns:xsi problem

Hi all,

i have a string which is having xml content, i
converting that string into
Document object like below

ByteArrayInputStream byArInStr = new
ByteArrayInputStream(docString.getBytes());
DocumentBuilderFactory dbf =
DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware (true);
DocumentBuilder db = dbf.newDocumentBuilder();
doc = db.parse(new InputSource(byArInStr));

my problem is, that string already have an attribute

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
in the root element.

but after converting that string into Document, the
above programme adds
one more
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
attribute to the 
root element of the doc

so how can i overcome this problem

Thanks in advance
Jeong Ahn

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com