Results 1 to 3 of 3
  1. #1
    Sierra is offline AN21XX
    Join Date
    Mar 2012
    Location
    Munich
    Posts
    297
    Rep Power
    2

    Red face How to retrieve the xsi:noNamespaceSchemaLocation property during unmarshalling?

    Hi all,
    We have files here acc. to the following type:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <XXX xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="XXX.xsd">
    ...
    </XXX>

    I am using Eclipse with JAXB and I am trying to produce the same output as the input was read. Currently all works fine, but the output is:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <XXX>
    ...
    </XXX>

    That is missing the read in and validated schema location... how do I get this during the unmarshalling? I thought about getProperty() but to no effect... I cannot even access the noNamespaceSchemaLocation property.
    Sorry if that topic was already treated - I looked, but "noNamespaceSchemaLocation" was considered too be long for searching and "XML" too short... so it proves difficult.
    Last edited by DarrylBurke; 10-23-2012 at 02:29 PM.
    I like likes!

  2. #2
    Sierra is offline AN21XX
    Join Date
    Mar 2012
    Location
    Munich
    Posts
    297
    Rep Power
    2

    Default Re: How to retrieve the xsi:noNamespaceSchemaLocation property during unmarshalling

    Can someone put a question mark behind my title? It reads as if I explain that thing... ;)
    I like likes!

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    10,102
    Rep Power
    17

    Default Re: How to retrieve the xsi:noNamespaceSchemaLocation property during unmarshalling

    Quote Originally Posted by Sierra View Post
    Can someone put a question mark behind my title? It reads as if I explain that thing... ;)
    Done. You could have done it yourself by editing the post and then clicking 'Go Advanced'

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Unmarshalling Restful Xml response
    By mwr1976 in forum Advanced Java
    Replies: 1
    Last Post: 04-01-2012, 06:19 AM
  2. JAXB Unmarshalling
    By milan.nosal in forum XML
    Replies: 0
    Last Post: 09-01-2010, 02:15 PM
  3. Replies: 0
    Last Post: 02-22-2010, 05:15 AM
  4. Replies: 0
    Last Post: 06-25-2009, 05:28 AM
  5. JAXB Unmarshalling
    By prateek in forum XML
    Replies: 0
    Last Post: 07-10-2008, 06:53 PM

Tags for this Thread

Posting Permissions

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