Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xml-dev] Help on Creating Default Namespace using DOM Parser

From: "Phillip Ryan C. Ganir" <philliprs_yahu@-----.--->
To: xml-dev <xml-dev@-----.---.--->
Date: 5/1/2006 6:38:00 PM
Note: forwarded message attached.


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

To: xml-dev@l...
Subject: [xml-dev] 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)
Authentication-results: mta163.mail.mud.yahoo.com from=yahoo.com; domainkeys=fail (bad sig)
Delivered-to: mailing list xml-dev@l...
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=  ;
List-help: <mailto:xml-dev-help@l...>
List-post: <mailto:xml-dev@l...>
List-subscribe: <mailto:xml-dev-subscribe@l...>
List-unsubscribe: <mailto:xml-dev-unsubscribe@l...>
Mailing-list: contact xml-dev-help@l...; run by ezmlm


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 

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php>


--- End Message ---


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent