Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6714937
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:33:15+00:00 2026-05-26T08:33:15+00:00

Here is my pages.xsd <?xml version=1.0 encoding=UTF-8 ?> <xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema xmlns:mac=http://www.tvworks.com/tva/xml/ns/max/data-types elementFormDefault=qualified attributeFormDefault=unqualified> <xs:import

  • 0

Here is my pages.xsd

<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:mac="http://www.tvworks.com/tva/xml/ns/max/data-types" 
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">

 <xs:import namespace="http://www.tvworks.com/tva/xml/ns/max/data-types" 
            schemaLocation="http://developer.tva.tvworks.com/xml/ns/max/data-types-3.2.xsd"/>


 <xs:element name="data">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="scenes" type="scenesType"/>
   </xs:sequence>
  </xs:complexType>
 </xs:element>

 <xs:complexType name="scenesType">
  <xs:sequence>
   <xs:element name="row" minOccurs="1" maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:element name="page" type="mac:page-ref"/>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
</xs:schema>

Here is my pages.xjb

<bindings xmlns="http://java.sun.com/xml/ns/jaxb"
          xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
          xmlns:xsd="http://www.w3.org/2001/XMLSchema"
          version="2.1">
    <bindings schemaLocation="pages.xsd" version="1.0"">
        <schemaBindings>
            <package name="com.mycompany.pages"/>
        </schemaBindings>
    </bindings>
</bindings>

Here is what I want the output to look like, notice the xsi:noNamespaceSchemaLocation="pages.xsd".

<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="pages.xsd">
 <scenes>
  <row>
   <page>page1</page>
  </row>
  <row>
   <page>page2</page>
  </row>
    <row>
   <page>page3</page>
  </row>
    <row>
   <page>page4</page>
  </row>
 </scenes>
</data> 

How do I get that attribute onto the data element the JAXB output automatically?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:33:15+00:00Added an answer on May 26, 2026 at 8:33 am

    Set property jaxb.noNamespaceSchemaLocation with the desired value on your Marshaller.

    EDIT: check the section on supported properties in the Marshaller documentation as well as method setProperty for additional info.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is my security-context.xml file <?xml version=1.0 encoding=UTF-8?> <beans xmlns=http://www.springframework.org/schema/beans xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xmlns:sec=http://www.springframework.org/schema/security xmlns:aop=http://www.springframework.org/schema/aop xsi:schemaLocation=http://www.springframework.org/schema/beans
Cutting to the case. Persistence.xml <?xml version=1.0 encoding=UTF-8?> <persistence xmlns=http://java.sun.com/xml/ns/persistence xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd version=2.0>
<?xml version=1.0 encoding=UTF-8?> <form:Documents xmlns:form=http://www.abbyy.com/FlexiCapture/Schemas/Export/FormData.xsd xmlns:addData=http://www.abbyy.com/FlexiCapture/Schemas/Export/AdditionalFormData.xsd> <_Document_Definition_1:_Document_Definition_1 addData:ImagePath=C:\POC\Export\Test.pdf xmlns:_Document_Definition_1=http://www.abbyy.com/FlexiCapture/Schemas/Export/Document_Definition_1.xsd> <_Page_1> <_First_Name>John</_First_Name> <_Last_Name>Doe</_Last_Name> </_Page_1> </_Document_Definition_1:_Document_Definition_1>
Here's my application-security.xml file: <?xml version=1.0 encoding=UTF-8?> <!-- - Sample namespace-based configuration - -
The php.net page here http://www.php.net/manual/en/mysqlinfo.library.choosing.php says this Configure commands for using mysqlnd // Recommended,
I have a web site http://www.mydomain.com Here I have created a sub folder http://www.mydomain.com/products
I have a minimal web app that you can download here (6Kb): http://www.mediafire.com/?6vo1tc141t65r1g the
There are a few pages here addressing usage of jQuery with .net masterpages -
Here's the problem: I have couple of pages which gets its content from a
Here is my current setup. I have two pages running on the jquery mobile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.