• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

org.w3c.dom.DOMException: DOM003 Namespace error

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using the folowing code
StringReader sr = new StringReader(documentStr);
StreamSource source = new StreamSource(sr);
DOMResult result = new DOMResult();
transformer.transform(source, result);
Document doc = (Document)result.getNode();

to convert the xml to another form of xml using XSL and my incoming XML as got first line
<FpML xmlns="http://www.fpml.org/2004/FpML-4-1" xsi:schemaLocation="http://www.fpml.org/2004/FpML-4-1 fpml-cd-trade-4-1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4-1" xsi:type="DataDocument">

xsi:schemaLocation="http://www.fpml.org/2004/FpML-4-1 fpml-cd-trade-4-1.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="4-1" xsi:type="DataDocument"

if i remove the above portion it works fine , what I have to put in the xsl or code to make it work ??

Its throwing me bove mentioned error if i keep the above portion

Could some one help me out.

Thanks
Pavithra
reply
    Bookmark Topic Watch Topic
  • New Topic