I have an XML file, sample.xml, that contains the following:
<Tokens>
<Token>Hello World</Token>
</Tokens>
I want to parse it - but get errors when it gets to the NBSP
I do not have access to the schema for the XML I am using (the one that defines Token or Tokens).
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
doc = docBuilder.parse("sample.xml");
Since I do not have the Schema for my XML document, I was wondering if there is a way to have it completely ignore the HTML special characters while parsing?