Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa XML Removal of XML header
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Nasreen
Removal of XML header
1 Answer(s)      a year and 11 months ago
Posted in : XML


I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What changes do I need to make in JAXBController?Explain me with examples..


Advertisement
View Answers

June 7, 2013 at 12:48 PM


hi friend,

You can set the property of Marshaller using its method setProperty() to Marshaller.JAXB_FRAGMENT, Boolean.TRUE) as

JAXBContext jaxbContext = JAXBContext.newInstance(ABC.class);
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty("Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
marshaller.marshal(abc, System.out);

Thanks.



Related Tutorials/Questions & Answers:
Removal of XML header
Removal of XML header  I need to retrieve a few records from the file at a time to generate xml.But each time while retrieving the records from the file, I dont want the XML header to appear again..How do I achieve this?What
stop word removal from text file
stop word removal from text file  i need java source code for stop word removal from a text file
Advertisements
Tattoo Removal Cream
Tattoo Removal Cream: Removing Tattoos has been made easy The tattoo removal... helps you to go through the tattoo removal process without going through pain... used are exfoliation and removal. The cream just breaks up the pigments of ink
table header
table header  how set the header to the TableModel
header files
header files   do you have a all header files of java
header() in php
header() in php  hello, Use of header() in php?   hello, header() is used for redirect the page.if you want to redirect one page to another we can use
Header file
Header file  when we use, Scanner input=new Scanner(System.in); this statement in a java program,which header filemust be imported to the program?   Hi Friend, Import the package java.util.*; Thanks
swings header
. i need logic for this program . i want to apply this to window header part
php header syntax
php header syntax  What is the correct syntax of PHP Header
http header content length
http header content length  How to check the request header content length in HTTP
alignment for header and footer
alignment for header and footer  header and footer alignment is not fit like footer is not fit in bottom some white space is there in jsf, what to do
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
E-Mail header extractor
E-Mail header extractor  i want to extract email header with using of java so please show the code of email extractor as result all the field show different color and or it extract ip where the email came
PHP header IE - PHP
PHP header IE  I tried the given code in PHP which is working for firefox header('Content-type: '.$theMimeType); ob_clean(); // clean output buffer flush(); // flush output buffer readfile($thePath); exit
Resize Header in CSS
Resize Header in CSS  Hi all, Please let me know if we can resize the Header tags in HTML for example H1,H2 and so on... Actually, it looks very...;We can resize header tags in CSS .. and further call that class into you HTML
swings window header
for this program . i want to apply this to window header part. Thanks
regarding header files - Spring
regarding header files  i am working on linux platform. i a using spring framework 2.5.4.while comlinig the client program i.e from demo which given in tutorial. error is these two package does not exist import
Header Tag:
Header Tag:       bean:header Tag... request header. This tag retrieve the value of the specified request header (may... scope attribute of type String or String[]. If no header with the specified
request header and response - Java Beginners
request header and response  count the hits of a user on a site
XML
XML  How i remove a tag from xml and update it in my xml
request header and response - JSP-Servlet
request header and response  Create aservlet that redirects a client to a.html if its morning ,to b.html if its a afternoon else to c.html.
xml
xml  validate student login using xml for library management system
xml
xml  validate student login using xml for library management system
xml
xml  why the content written in xml is more secure
xml
xml  what is name space,xml scema give an example for each   XML Namespaces provide a method to avoid element name conflicts.They are used for providing uniquely named elements and attributes in an XML document
XML
XML  create flat file with 20 records. Read the records using xml parser and show required details
XML
XML  please tell me how i remove one tag out of all similar type of tags in xml
xml
xml  how can i remove white space and next line when i copy stream to xml file
XML
XML  Hi...... Please tel me about that Aren't XML, SGML, and HTML all the same thing? Thanks
xml
xml  what is xml   Extensible Markup Language (XML... that is both human-readable and machine-readable. It is defined in the XML 1.0... gratis open standards. The design goals of XML emphasize simplicity, generality
xml
xml  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language
 

 

 

DMCA.com