Get the original content from the XML in the InDesign Document
I have fetched the xml content having bullet points. When I have fetched the xml value then it get displaced as an •.And I have used the following code to get the content of XML. How can I replace this particular special character to bullet point?
if(inputXML.exists == true) {
inputXML.open('r');
var text = inputXML.read();
inputXML.close();
var content = new XML(text);
var elements = content.xpath("//CDATA");
for(var n = 0; n < elements.length(); n++){
if(elements[n].parent()["@"+attribute].toString() == id){
CDATA.push(elements[n].toString());
// alert(elements[n].toString())
}
}
}
