Questions tagged [woodstox]

Tag for questions related to Woodstox XML processor

Woodstox XML processor project home is at http://woodstox.codehaus.org, and documentation can be found from http://wiki.fasterxml.com/WoodstoxHome.

86 questions
28
votes
17 answers

CXF web service client: "Cannot create a secure XMLInputFactory"

I am wrote and deployed a CXF web service into a Tomcat server using the instructions here. The web service deploys fine as I can see the WSDL file in a web browser. My standalone Java client program doesn't work though. Here is the…
pacoverflow
  • 3,726
  • 11
  • 41
  • 71
26
votes
10 answers

StAX XML formatting in Java

Is it possible using StAX (specifically woodstox) to format the output xml with newlines and tabs, i.e. in the form: someData instead of: someData If…
Lehane
  • 47,588
  • 14
  • 53
  • 53
13
votes
5 answers

how to override a service provider in java

This is more a general question by example: I'm using xstream and woodstox, woodstox comes with a service provider for javax.xml.stream.XMLOutputFactory in woodstox jar registering com.ctc.wstx.stax.WstxOutputFactory. I want to provide my own…
Shalom938
  • 909
  • 2
  • 10
  • 24
10
votes
5 answers

XMLEventWriter: how can I tell it to write empty elements?

I do not see an option within javax.xml.stream.XMLEventWriter or javax.xml.stream.XMLOutputFactory to set either up in a way so that empty elements are written (instead of explicit start and end element pairs). I see that Woodstox has a property to…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
7
votes
2 answers

How to catch Attribute-events with a StAX XML-parser?

I try to parse an XML file with a StAX XML-parser. It give me START_ELEMENT and END_DOCUMENT events but no ATTRIBUTE events. How can I receive ATTRIBUTE events with the StAX parser? My XML:
Jonas
  • 121,568
  • 97
  • 310
  • 388
7
votes
2 answers

How to specify which stax parser to use

I have a woodstox and and java SE 1.6 stax parser in the classpath but woodstox seems to get selected by default. However in certain cases I'd like to use the default Java stax parser. Is there any way to specify which implementation to use?
Fredrik L
  • 1,790
  • 4
  • 21
  • 28
7
votes
0 answers

Unnecessary Namespace in Jackson XML 2.6.1 + Woodstox 4.4.1

I'm trying to parse my object to XML using jackson-dataformat-xml and, when i set the root namespace and parse the file, all properties of my object in the XML gives a empty namespace xmlns="". On jackson's github docs, is advise to use woodstox…
Tiago Cássio
  • 301
  • 2
  • 5
7
votes
3 answers

CXF 2.7.x Woodstox Compatibility via Maven

In the CXF's documentation it is said that the 2.7.x version requires the Woodstox jars not under the 4.2.0 version to be available in the classpath. Can somebody, please, suggest Maven dependencies for Woodstox to work with CXF? The main problem…
Dmitry
  • 3,028
  • 6
  • 44
  • 66
6
votes
2 answers

How to load a relative system DTD into a StAX parser?

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/test.dtd The XML references to its DTD using a relative…
MRA
  • 2,992
  • 1
  • 16
  • 18
5
votes
1 answer

com.ctc.wstx.exc.WstxParsingException: Text size limit

I am sending a big attachment to a CXF webservice and I get the following exception: Caused by: javax.xml.bind.UnmarshalException - with linked exception: [com.ctc.wstx.exc.WstxParsingException: Text size limit (134217728) exceeded at…
Laurent
  • 14,122
  • 13
  • 57
  • 89
5
votes
2 answers

Java - XML parser performance : Sun Java Streaming XML Parser (SJSXP) vs Woodstox

I am looking for latest, memory efficient and high-performance java XML parsing API. I need to parse 3 MB to 5 MB XML files. I did google on this and come to know about Sun Java Streaming XML Parser (SJSXP) and Woodstox is much faster than DOM &…
Santosh
  • 782
  • 4
  • 15
  • 38
4
votes
1 answer

JAXB to use Woodstox parser for performance?

Is it possible switch the native parser, which I believe is based on Java reflection. We have some performance issues and wondering whether we can switch the implementation. Your advise is highly appreciated. Additional information: This is…
anonmys
  • 419
  • 1
  • 8
  • 18
4
votes
2 answers

Leave entities as-is when parsing XML with Woodstox

I'm using Woodstox to process an XML that contains some entities (most notably >) in the value of one of the nodes. To use an extreme example, it's something like this:   <   > & " '   I have…
luthier
  • 2,674
  • 4
  • 32
  • 35
4
votes
2 answers

How do I serialize / deserialize a class in XML with Woodstox StAX 2

I'm pretty much trying to archive, what has been done in how-to-serialize-deserialize-simple-classes-to-xml-and-back (C#) in Java. If possible, I would like to avoid writing a serialize / deserialize methods for each class. For example, part of…
Margus
  • 19,694
  • 14
  • 55
  • 103
4
votes
1 answer

Error Parsing '&' Character Using Woodstox Parser

Java: 1.6 Woodstox: 4.1.4 I'm currently trying to make Woodstox xml parser my friend. But beginning is really hard :) I have a small? problem when parsing xml like this one: Mom & Dad Son &…
Hubert
  • 1,125
  • 5
  • 17
  • 36
1
2 3 4 5 6