meganluv1995
New Member
I have a JS code reading a div's content and returning string data.Than I want to read this and convert to XMLFirst converting \[code\]<\[/code\] to \[code\]<\[/code\] and \[code\]>\[/code\] to \[code\]>\[/code\] than get string from html:\[code\]XmlData = http://stackoverflow.com/questions/15761471/String(ExternalInterface.call("ReadXmlContent"));\[/code\]Create XML:\[code\]bookxml = new XML(XmlData);aaaa.htmlText +="bookxml "+ bookxml.toXMLString() + " <br>" // shows complete xmlaaaa.htmlText +="length"+ bookxml.content.page.length() + " <br>"; // shows : 0 \[/code\]Complete xml is showing but can't read xml nodes.Thanks for help.-- Real problem and solution - Thanks @Anton for helpful question--Real Xml nodes:\[code\]<MediaObject Title='name' MediaObjectID='14' X1='42,00' Y1='3,00' X2='72,00' Y2='31,00' MediaType='video'/><MediaObject Title='name' MediaObjectID='15' X1='3,00' Y1='3,00' X2='34,00' Y2='31,00' MediaType='video'/>\[/code\]but the browser converts this:\[code\]<mediaobject title='name' mediaobjectid='14' x1='42,00' y1='3,00' x2='72,00' y2='31,00' mediatype='video'><mediaobject title='name' mediaobjectid='15' x1='3,00' y1='3,00' x2='34,00' y2='31,00' mediatype='video'></mediaobject></mediaobject>\[/code\]Browser changing nodes and olso converts node names and attributes to lowercase.Solution: Change xml nodes and attributes.