Questions tagged [saxparseexception]

The Java exception which encapsulates an XML parse error or warning.

The Java exception which encapsulates an XML parse error or warning.
This exception will include information for locating the error in the original XML document.

125 questions
0
votes
2 answers

How do I turn a single word into valid xml?

I have the following code which turns a string, that I pass into the function, into a document: DocumentBuilderFactory dbFactory_ = DocumentBuilderFactory.newInstance(); Document doc_; void toXml(String s) { documentBuild(); DocumentBuilder…
Grammin
  • 11,808
  • 22
  • 80
  • 138
0
votes
1 answer

SAXParseException: Unexpected token when trying to parse remote XML on Android

I am trying to parse an XML from the internet and display some of its data in a simple TextView. Here is my code: public class MainActivity extends AppCompatActivity { TextView tv1; @Override protected void onCreate(Bundle…
0
votes
1 answer

org.xml.sax.SAXParseException Document root element "ehcache", must match DOCTYPE root "null"

I am trying to deploy spring+cxf+maven based web service to wildfly. While deploying, Facing this exception 2017-06-13 03:20:18,874 INFO [org.springframework.context.support.PropertySourcesPlaceholderConfigurer] (ServerService Thread Pool -- 60)…
Jyo
  • 1
  • 2
0
votes
0 answers

"SAXParseException: XML document structures must start and end within the same entity" at very strange place

I am trying to parse an XML file with SAX parser in java but time to time have this exception: SAXParseException; systemId: /input.xml; lineNumber: 627; columnNumber: 5; XML document structures must start and end within the same entity. I have my…
0
votes
1 answer

org.xml.sax.SAXNotRecognizedException when running runnable jar with java 8

I am exporting my project as runnable jar and execute in java 8 environment. But I am getting org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/sec ure-processing at…
0
votes
0 answers

SAXPARSER Exception : getting accurate logs

I'm using SAX to build XML file. The problem is log : org.xml.sax.SAXParseException: cvc-minInclusive-valid: Value '0' is not facet-valid with respect to minInclusive '1' for type 'positiveInteger'.' I understand the issue : the value '0' is set…
0
votes
1 answer
0
votes
1 answer

Java: Catch a SAXException thrown by method in supertype

I have a class extending org.xml.sax.ext.DefaultHandler2 in which I override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException which is originally from DefaultHandler2's supertype…
s.d
  • 4,017
  • 5
  • 35
  • 65
0
votes
1 answer

Writing BLOB into XML file

I am using Oracle 11g database and jdk1.6.0_45 I am attempting to fetch an xml file in the form of a blob from the database and using DOM parser. I'm trying to parse the blob object and write the output content in the console. Here is my code…
AlwaysALearner
  • 6,320
  • 15
  • 44
  • 59
0
votes
0 answers

SAXParseException but the XML is perfectly fine

I have this server that has to receive a xml file from a client. All that works fine and my server creates a new xml file. After that I try to use JAXB to read from the XML file but I get the SAXParseException. I've tried with multiple files and in…
0
votes
1 answer

Error Calling a JAVA web service after Windows Update KB3147458

Some weeks ago, our team installed an application that calls a webservice (https://palena.sii.cl/DTEWS/CrSeed.jws?wsdl) on a Windows 10 Machine. Weeks later, the windows update installed a critical security update (KB3147458) and the application…
Eulogy
  • 197
  • 1
  • 1
  • 14
0
votes
2 answers

How to remove � character while parsing xml file in android

Respected All, I have to read xml files from server and display data from all files. some data contains character '�' which gives me SAXException while parsing. I have tried to convert UTF-8 format. but it gives me out of application as soon as that…
Vikram
  • 1,072
  • 2
  • 20
  • 33
0
votes
1 answer

How to find all multiple uses of the same xml element id value?

Somehow, I'm using the same xml element id value more than once. The xml written to a file is truncated before I can see where the duplicate usage of the id value is. The sax parser exception is not too helpful. How can I tell the…
bwfrieds
  • 341
  • 3
  • 20
0
votes
0 answers

SAXParseException in Google scraping

I'm new in Java and I'd like to know how to parse data from a webpage (let's say the resulting titles of a specific research in Google). I tried to implement the following async task just to see if I could retrieve the data: private class…
1 2 3
8 9