XML Schema validation error

后端 未结 3 1718
再見小時候
再見小時候 2021-01-07 15:57

I have my xml file as

 
 
 123
 qwe
 

        
3条回答
  •  情书的邮戳
    2021-01-07 16:22

    I tried out your file and managed to get it to validate against notepad++ doing a couple of things:

    1. Changed the xsd to use a reference to the imported signature xsd without any c:\reference. To do this I just copied that imported file to the same location as the xsd I was doing the importing from
    2. Changed the c2.xsd where you specify the ds to a different attribute namely dsig
    3. Downloaded the w3c version of the signature xsd from w3 Signature xsd and used that in the import (Step 1).
    4. Changed your output xml to include the xmlns="http://www.w3.org/2000/09/xmldsig#" line when specifying the signature.

    Note the xsd and xml I succeeded in validating in notepad++ below.

    XSD:

    
    
    
    
      
    
          
          
          
          
          
          
          
          
          
          
          
    
      
    
    
    

    And the XML:

    
     
     123
     qwe
     qwe
     qwe
     qwe
     2012
     1234
     1234
     1234
     122
     
    
     
     
     
     
     
     
        
            
            
    Pan : 
    
    MobileNo : 
    
    TotalAmount : 
            
        
    
    
    
    FgbIIimTLIbd0Zpvq1zDrZse6aJg5bAE1/Q58cEkEvk=
    
     
    dy4QDco5NhXResncu0tUG5ylujDn9siIQSHjuX5HxH2gs70LpsO3KDWNvDXjpgkIySYfzJ/FdC6C
    trkSySWRjhObqI8cbcP5VU/nL8pP21+3CO+gF1k884aeX3felpRy0FBBMTYBknQTunWCHvpHk927
    ZHGvm6Hiej7iBKr3e1k=
    
    
    

提交回复
热议问题