stax Questions
16
Solved
I've been beating my head against this absolutely infuriating bug for the last 48 hours, so I thought I'd finally throw in the towel and try asking here before I throw my laptop out the window.
I'...
Maladjusted asked 13/6, 2010 at 2:52
6
Solved
I'm using Java 11, Spring Boot 2.1.1 and Apache CXF 3.2.7 to expose a SOAP web service that imports an XSD schema. In the WSDL it shows like:
<wsdl:import location="http://localhost:9000/endpoi...
Counterbalance asked 31/12, 2018 at 17:59
3
Solved
I have an XML structure which is very huge.
I want to update the parts of this XML, by unmarshalling one element and then applying business logic.
I am able to unmarshal a child element into a PO...
1
I have a large XML file that consists of many events. I would like to unmarshal them. As it's a large file, I would like to unmarshal them one by one so the whole file is not stored in memory. It w...
Fogbow asked 24/5, 2021 at 6:25
4
Solved
Under the push parsing approach, a push parser generates synchronous events as a document is
parsed, and these events can be processed by an application using a callback handler model
This is...
2
Solved
I have some code like:
XMLInputFactory xif = XMLInputFactory.newInstance()
TransformerFactory tf = TransformerFactory.newInstance("org.apache.xalan.processor.TransformerFactoryImpl", null)
Transf...
Alburg asked 29/5, 2013 at 12:6
6
Solved
xml looks like so:
<statements>
<statement account="123">
...stuff...
</statement>
<statement account="456">
...stuff...
</statement>
</statements>
I'm ...
1
Solved
Trying to transform a Staxsource into a StreamResult give me an error (when running on Wildfly 24 using Adoptopenjdk 11-hotspot)
But the same code executed from an unit test pass without errors and...
0
I am using spring batch in the spring-boot application. The Spring Boot version is 2.3.3.RELEASE.
I have a complex XML that contains header(file information) and body(List of the transaction). I us...
Salena asked 18/6, 2021 at 7:48
1
Solved
I am trying to perform JAXB Unmarshalling for a large XML file so using the XMLEventReader but it's not working as expected and not performing the Unmarshalling.
Following is the XML file that I am...
Cambium asked 24/5, 2021 at 17:42
1
In Java 8, I've been using these packages:
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamReader;
import javax.xml.transform....
3
Solved
I've got a JAX-WS web service endpoint configured purely via annotations running in TomEE 7 environment. Basically, the method being called has to return a List<String> of all node names cont...
Tarriance asked 18/7, 2017 at 8:1
2
Solved
Is there a way to use StAX and JAX-B to create an index and then get quick access to an XML file?
I have a large XML file and I need to find information in it. This is used in a desktop applicatio...
Shena asked 12/4, 2017 at 10:11
3
I surf through the web. I found that the XMLStreamReader is Cursor style API for parsing XML. And XMLEventReader is Iterator style API for Parsing XML.Could any one tell me in detail?
Sulphathiazole asked 19/4, 2016 at 11:44
2
Solved
I have created an XML schema (foo.xsd) and used xjc to create my binding classes for JAXB. Let's say the root element is collection and I am writing N document objects, which are complex types.
Be...
2
I'm using Android studio 1.5.1
I'd like to include the org.apache.poi-ooxml library in my android project. To include that library I needed to include some other library dependencies, among which ...
Eucaine asked 5/1, 2016 at 12:51
3
Solved
I have the following code:
XMLInputFactory inputFactory = XMLInputFactory.newInstance();
XMLStreamReader xmlStreamReader = inputFactory.createXMLStreamReader(inStream);
this.encoding = xmlStreamRe...
5
Solved
I am using StAX to create a quite large xml document. Until now I was using the IndentingXMLStreamwriter class to get a well formatted document (see also this answer). A few days ago we setup a jen...
Denishadenison asked 11/4, 2012 at 11:41
6
Solved
I am trying to merge two xmls in Java. I am using STaX API to write these XMLs. I searched a lot on internet on how to merge xmls but none seems as straight forward as C#. Is there any straight-for...
3
Solved
Is there a way I can use STAX parser to efficiently parse an XML document with multiple lists of objects of different classes (POJO).
The exact structure of my XML is as follows (class names are n...
Felon asked 11/5, 2019 at 6:49
1
I'm using javax.xml.stream.XMLStreamReader to parse XML documents. Unfortunately, some of the documents I'm parsing use non-IANA encoding names, like "macroman" and "ms-ansi". For example:
<?xm...
Ossetic asked 7/6, 2018 at 22:2
6
Solved
Update There is no ready XML parser in Java community which can do NIO and XML parsing. This is the closest I found, and it's incomplete: http://wiki.fasterxml.com/AaltoHome
I have the following c...
2
Solved
I am using woodstox to implement a StAX parser for XML files. Assume that I have a valid XML file with matching DTD somewhere in a common directory in my filesystem.
/path/to/test.xml
/path/to/tes...
3
Solved
I need to read several big (200Mb-500Mb) XML files, so I want to use StaX.
My system has two modules - one to read the file ( with StaX ); another module ( 'parser' module ) suppose to get a single...
2
Solved
I want to extract specific nodes from a large XML file. That works well, until a wild CDATA without any content appears.
The output:
ERROR: ''
javax.xml.transform.TransformerException: java.lang....
1 Next >
© 2022 - 2024 — McMap. All rights reserved.