小编Min*_*hos的帖子

cvc-complex-type.2.4.a: Invalid content was found starting with element 'MarkupListURI'. One of '{MarkupDeleteURI}' is expected

I have been attempting to resolve this final issue with validating the return xml from the api to the xsd, in almost all instances that are similar the solution is to add the following line: elementFormDefault="qualified" however this line is already included in both the originating xsd and the child xsd.

The submitted xml is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><SignedConfig>
  <Config>
    <RequestID>9cb5b8fe-62d8-4d52-ba32-58f1d1cc5909</RequestID>
    <ClientID>1234</ClientID>
    <ClientIP>172.1.1.0</ClientIP>
    <HelpURI>http://www.google.com/HELP_URI</HelpURI>
    <BravaServerURL>http://www.google.com/BRAVA_SERVER_URL</BravaServerURL>
    <UserName>Kenneth Test</UserName>
    <MaxCacheSize>1</MaxCacheSize>
    <NumberPreloadedPages>2</NumberPreloadedPages>
    <UseMultiPartPost>false</UseMultiPartPost>
    <ResolveDBTokensURI>http://www.google.com/RESOLVE_DBTOKENS_URI</ResolveDBTokensURI>
    <UI>
      <UiOverride>UI Variant</UiOverride>
      <CssOverride>CSS Theme</CssOverride>
      <SinglePageLayout>true</SinglePageLayout>
      <EnableRasterRenderer>true</EnableRasterRenderer>
      <Hide>
        <Widget>closeButton</Widget> …
Run Code Online (Sandbox Code Playgroud)

xml validation xsd sax saxparseexception

9
推荐指数
1
解决办法
6万
查看次数

标签 统计

sax ×1

saxparseexception ×1

validation ×1

xml ×1

xsd ×1