www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] SAXParseException - The content of element is not complete

  1. #1
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046

    resolved [RESOLVED] SAXParseException - The content of element is not complete

    Hello,

    Need some help with this.

    I think it's my XSD but not sure. Here is the error


    Jan 19 11:12:49 ERROR http-8080-Processor24 [default].invoke:253 - Servlet.service() for servlet default threw exception

    javax.xml.bind.UnmarshalException

    - with linked exception:

    [org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The content of element 'nav' is not complete. One of '{"http://some.com/navigation/v1":subs}' is expected.]

  2. #2
    Join Date
    Aug 2006
    Location
    Michigan
    Posts
    1,046
    Solved, it was my XML. In the XSD I have a nested tag with out any attributes but in the XML It's used as a nested wrapper tag. just needed to add this to the last element.

    <wrapper>
    <element>
    </element>
    <wrapper>
    <!-- Added blank tag -->
    </wrapper>
    </wrapper>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles