This error is probably related to a byte order mark (BOM) prior to the actual XML content. You need to parse the returned String and discard the BOM, so SAXParser can process the document correctly.
You will find a possible solution here.
More Related Contents:
- Java Webservice Client (Best way)
- javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake during web service communicaiton
- Web service client given WSDL
- How do I rotate tick mark labels on the domain of a number axis in JFreeChart?
- Changing the default XML namespace prefix generated with JAXWS
- Operations on Strings
- How do I programmatically determine operating system in Java?
- Override back button to act like home button
- Page scroll up or down in Selenium WebDriver (Selenium 2) using java
- What is “String args[]”? parameter in main method Java
- Pyspark: Exception: Java gateway process exited before sending the driver its port number
- How can you get an Android user’s email address?
- Favor composition over inheritance [duplicate]
- How do I calculate the elapsed time of an event in Java? [duplicate]
- GWT: Timer and Scheduler Classes
- How to implement a FSM – Finite State Machine in Java
- How does `this` reference to an outer class escape through publishing inner class instance?
- Immutable objects are thread safe, but why?
- Is there away to generate Variables’ names dynamically in Java?
- Hibernate/JPA DB Schema Generation Best Practices
- How to do an HTTPS POST from Android?
- Does close ever throw an IOException?
- How can I reliably simulate touch events on Android without root (like Automate and Tasker)?
- Finding all objects that have a given property inside a collection [duplicate]
- BigDecimal adding wrong value
- Is it feasible to create a REST client with Flex?
- Why is CompletableFuture.supplyAsync succeeding a random number of times?
- How do you enforce foreign key constraints in SQLite through Java?
- What is the use of cloneable interface in java?
- Return different type of data from a method in java?