47919

To Read XML file in Android

Question:

I was tried to read XML file using SAXParser class, But it is displaying some special character such as [],<<..>>` etc. Can you help me to read XML with excluding special chars.

Answer1:

Try the Normalization for the Node Content. normalize method helps for that. check <a href="http://developer.android.com/reference/org/w3c/dom/Node.html#normalize()" rel="nofollow">this</a>

Recommend

  • TextView carriage return not working
  • Obtaining DOCTYPE details using SAX (JDK 7)
  • How to read comment text with SAX Java parser
  • How to generate xml from xsd schema?
  • Vue props data not updating in child component
  • Using HTML/CSS for UI in XNA?
  • CloseOptionsMenu doesn't work?
  • Creating a C++ function that calls other Lua function
  • C function strchr - How to calculate the position of the character?
  • Why isn't my “Fizz Buzz” test in R working?
  • Validate jQuery plugin, field not required
  • Trying to get the char code of ENTER key
  • Array with custom indexes in Ionic2
  • Textfile Structure (tables)
  • preg_replace Double Spaces to tab (\\t) at the beginning of a line
  • Play WS (2.2.1): post/put large request
  • Projection media query: browser support and workarounds?
  • Deserializing XML into class C#
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • Is there a mandatory requirement to switch app.yaml?
  • Cannot Parse HTML Data Using Android / JSOUP
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • SQL merge duplicate rows and join values that are different
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • coudnt use logback because of log4j
  • Java static initializers and reflection
  • LevelDB C iterator
  • unknown Exception android
  • Can't mass-assign protected attributes when import data from csv file
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Easiest way to encapsulate a HTML5 webpage into an android app?
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Observable and ngFor in Angular 2
  • How to Embed XSL into XML
  • UserPrincipal.Current returns apppool on IIS
  • Unable to use reactive element in my shiny app
  • Conditional In-Line CSS for IE and Others?
  • java string with new operator and a literal