SV: [jdom-interest] Blank namespace query

Per Norrman pernorrman at telia.com
Wed Feb 25 15:12:20 PST 2004


My guess is that the SendRepair element and its children
are created in the empty namespace, when they should
be created in fred's namespace.

/pmn

> -----Ursprungligt meddelande-----
> Från: jdom-interest-admin at jdom.org 
> [mailto:jdom-interest-admin at jdom.org] För Bradley S. Huffman
> Skickat: den 25 februari 2004 20:41
> Till: WhittleA
> Kopia: jdom-interest at jdom.org
> Ämne: Re: [jdom-interest] Blank namespace query 
> 
> 
> Your undeclaring the default namespace with xmlns="" on 
> SendRepair. Remove it and all unprefixed elements underneath 
> the root will be in "http://fred.org" namespace.
> 
> Brad
> 
> WhittleA writes:
> 
> > Apologies if this is already on the archives - scanned but 
> could not 
> > find a related topic....
> > 
> > I have managed to setup my namespaces on my root element fine.  
> > However, on the second child element of the root element ( 
> SendRepair 
> > ), it seems to want to add a blank name space. Why would it 
> do that? 
> > Am I not setting something up?
> > 
> > Andy
> > 
> > 
> > <SendToEscalationPartner xmlns="http://fred.org" 
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:schemaLocation="http://fred.org .\schemaHere.xsd"> 
> > <EscalationPartner>59</EscalationPartner>
> > <SendRepair xmlns="">
> > <RepairJobID>2596</RepairJobID>
> > <BranchID>5</BranchID> 
> > <DatePhoneManufactured>2003-3-4</DatePhoneManufactured>
> > <DatePhoneLoggedIn>2004-1-25</DatePhoneLoggedIn>
> > </SendRepair>
> > <SendToEscalationPartner>
> _______________________________________________
> To control your jdom-interest membership: 
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com




More information about the jdom-interest mailing list