How to declare element

前端 未结 1 785
悲哀的现实
悲哀的现实 2021-01-25 19:38

I\'m looking for validate an XML document with xrm prefix as you can read here :

I wrote the following XML Schema :

              


        
1条回答
  •  借酒劲吻你
    2021-01-25 20:14

    xrm is a namespace prefix, an abbreviation for the namespace. As the syntax error indicates, a namespace prefix is not declared via xsd:element/@name. Instead, declare only the local name (plugin) and handle the namespace prefix declaration at the XSD level...

    Here is a simplified set of your XML and XSD where the XML validates successfully against the XSD:

    XML

    
    
      
        
          MPD_4.1.1.0
           
          SC-DIF-OT3402-0002-MOSS 1.8 - DIF COSCA Inc.2.doc
          
            Générateur de mapping v1.0
            14/01/2013
            Génération du fichier de mapping
          
        
      
    
    

    XSD

    
    
      
        
          
        
      
      
        
          
            
          
        
      
    
    

    0 讨论(0)
提交回复
热议问题