Question: Removal of XML header

Ads

 
 
 

Share on Google+Share on Google+

Nasreen
Removal of XML header
1 Answer(s)      4 years and 6 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..

Ads
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.


Ads









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
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
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
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
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
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  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
Tutorials   
Java Spring Hibernate Struts Training were to start with xml, XSD and java write a program that Implement an integrated COM client server to add two numbers.by visuall studio 2010 Building a Parent Child relationship XML how i connect two page xml question struts cfg file for DispatchAction with mysql db Creating custom output using XMLUnit - MatchTracker duplicates the output data Related to XML Related to XML Reading child of child nodes in xml Reading multiple xml files Spliting Large XML and one by one Moved to Output Folder XMl and Java web services project download xml file from website using java code Download how to create an xml file in following clear format Conditional increment in xslt Conditional increment in xslt Conditional increment in xslt HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP? xml and servlets xml and servlets Question about parsing XML document with DOM in JAVA. Removal of XML header Converting PHP page with flash to JSP page without flash saving data in xml Doubt about Xstream Converter Reading xml file using dom parser in java with out using getelementby tag name xml dynamically how to change attiribute values in xml XML Schema xml xml sax parser for xml parsing xml using sax xml to html via java i want java code for this xml file...please show me.. SAX Parser for huge XML file xml parsing "opening video data error" in j2me XML to JSP mapview1 mapview searchbar searchbar jsonparsing xmlparsing retrieve multiple attribute values retrieve multiple attribute values

Ads

 
Advertisement null

Ads