要生成的XML文件如下
------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?> 
<MessageQueueCommand xmlns="M.Box.MessageQueueCommands" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="M.Box.MessageQueueCommands E:\xsdtest\MessageCommands.xsd">
  <InjectionRequestCommand>
    <AdditionalInfo Key="myKey1">myValue1</AdditionalInfo> 
    <AdditionalInfo Key="myKey2">myValue2</AdditionalInfo> 
    <MessageId>9E479DFE-3360-4A08-9157-71F78D715365</MessageId> 
    <Msisdn>63125874557458</Msisdn> 
    <SourceTransactionId>A12324BD1-C</SourceTransactionId> 
    <TelcoId>1</TelcoId> 
    <TransmitterName>01RouterProc01</TransmitterName> 
    <ResponseQueue>MIAB.01RouterProc01.Telco1.Injection.Response</ResponseQueue> 
    <Amount>1000</Amount> 
    <CodeType>10 Telco1 Topup</CodeType> 
    <InjectionType>Topup</InjectionType> 
    <RetailerGroupId>A100</RetailerGroupId> 
    <RetailerId>A1001</RetailerId> 
    <StoreId>A1001_1</StoreId> 
    <TransactionId>924348347261</TransactionId> 
  </InjectionRequestCommand>
 </MessageQueueCommand>
------------------------------------------------------------------------------------------------------大家注意到了,该XML文件有三个名称空间,第一个是默认的,所以没有前缀,第二个也是比较平常的,但是第三个就比较特别了,至少对于我来说是这样。我从没有写过这样的名称空间,这个是通过XML编辑工具生成的,是本地磁盘里的一个.xsd文件。用来验证生成的XML的。现在问题是,我使用JDOM加名称空间时只能加
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
这样格式的,第三种格式的名称空间该怎么加呢?注:该XML是通过验证的!现请朋友们帮忙,有遇到此问题的千万要留言哦!先感谢各位了!