Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Writing an

Thread view: 
neroblu80 - 27 Mar 2007 16:26 GMT
Ciao a tutti,

sto scrivendo un file XML con JDOM.
Il problema è che alla root del file devo aggiungere tre namespace per
ottenere un qualcosa del tipo:

<root xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2001/
XMLSchema">

Sono riuscito ad utilizzare  root.setNamespace(ns); per inserire
l'attributo xmlns, ma non riesco proprio a trovare il modo per
inserire gli altri ns con i relativi prefissi. C'è qualche metodo che
mi sfugge? Nelle varie documentazioni non ho trovato nulla e se provo
a fare root.setAttribute("xmlns:xsi","valore"); mi da errore di
formato per il nome attributo.

Come posso fare??
Grazie mille
neroblu80 - 27 Mar 2007 16:27 GMT
> Ciao a tutti,
>
[quoted text clipped - 14 lines]
> Come posso fare??
> Grazie mille

Sorry that was supposed to be translated first.... :/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.