[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Help on Creating Default Namespace using DOM Parser

  • To: xml-dev@l...
  • Subject: Help on Creating Default Namespace using DOM Parser
  • From: "Phillip Ryan C. Ganir" <philliprs_yahu@y...>
  • Date: Sun, 30 Apr 2006 08:39:10 +0100 (BST)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=aiwa53YIu91Z5p6mq14jT8P1sTNmyOQCi7tp5s1DaVcKFxM53CtVHfsJSrGO40JYo7hrcFrik5J78nQOKlMVdLQz5CHbjJxcW/MpKJlnZBgPGnTyaW3d1yfK0KyibC8zAvknW7pzrqrBA+DlCbT54jGXtc8qickyepkc0r8GrZc= ;

ganir corporation
Hi,

     I want to ask anyone how (or is it possible) to
create the default namespace with a different URI from
"http://www.w3.org/2000/xmlns/" using DOM parser in
java (that from w3c). I've tried using
root.setAttribute("xmlns", "http://..."), but I'm just
getting an "xmlns" tag with just "" as URI. I also
tried 
root.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://..."),
but I'm still getting the same.

     To illustrate, I'm getting:

<rootTagName xmlns ="" >

How do I get <rootTagName xmlns="http://..."> instead?

Thank you very much!

Phillip
 

Send instant messages to your online friends http://uk.messenger.yahoo.com 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.