actionscript 3 - How can I fix th Error #1090: XML parser failure: element is malformed in Flex? -
i use httpservice send request web-service. web-service runs query in sql server , brings row set f data in xml format. service working fine long there no blank in title of column in result set. if there space (blank) inside of column name (like "customer name"), encounter following error:
error #1090: xml parser failure: element malformed.
using httpfox addon in firefox, can see records retrieved it's displayed below. think problem blank in xml tags retrieved service.
<record> <year><![cdata[2009]]></year> <owner><![cdata[blm]]></owner> <customer name><![cdata[smith naval]]></customer name> </record> is there way resolve issue?
i'm not sure tell don't seem know.
you can't have spaces in xml tag , still xml compliant. many argue database shouldn't have spaces in column names too.
if possible, replace spaces in database columns underscore. if isn't possible, perform server side processing when creating xml spaces don't appear in xml tag name.
here few options:
- name tag using every letter to, not including, first space of column name
- remove spaces in tag names while generating xml.
- process returned value text. me sounds difficult; if you're on regex may possible.
Comments
Post a Comment